Commits

Peter Hosey committed 14f8db7

Create our own NSFileManager rather than using defaultManager, as recommended by the docs since 10.5.

Comments (0)

Files changed (1)

 	[descriptionChunks addObject:@"in CWD"];
 	if (!(self.currentDirectoryPath))
 		[descriptionChunks addObject:@"(inherited)"];
-	[descriptionChunks addObject:self.currentDirectoryPath ?: [[NSFileManager defaultManager] currentDirectoryPath]];
+	NSFileManager *mgr = [[[NSFileManager alloc] init] autorelease];
+	[descriptionChunks addObject:self.currentDirectoryPath ?: [mgr currentDirectoryPath]];
 	return [NSString stringWithFormat:@"<%@>", [descriptionChunks componentsJoinedByString:@" "]];
 }