On Mar 17, 2010, at 12:35 PM, Andreas Mayer wrote: > Am 17.03.2010 um 17:46 Uhr schrieb Kevin Wojniak: > >> NSLog(@"displayNameAtPath: %@", [[NSFileManager defaultManager] >> displayNameAtPath:path]); > > Note that -displayNameAtPath: will give you the localized name if one should > exist. > > (For example you'll get 'Programme' for the 'Applications' folder if you > happen to be on a German system.) > > You can't use that as an input to file system functions. > > Since the OP didn't say what he needs the filename for, -displayNameAtPath: > may or may not be the right solution.
I think it will also hide file extensions for users who have that preference set. Regards, Ken _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com