Re: Case sensitive fileName
Re: Case sensitive fileName
- Subject: Re: Case sensitive fileName
- From: Ken Thomases <email@hidden>
- Date: Wed, 17 Mar 2010 18:31:46 -0500
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 (email@hidden)
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:
This email sent to email@hidden