Re: Ah! knew it: hardcoding @"Documents" directory=big no-no!
Re: Ah! knew it: hardcoding @"Documents" directory=big no-no!
- Subject: Re: Ah! knew it: hardcoding @"Documents" directory=big no-no!
- From: Stéphane Sudre <email@hidden>
- Date: Thu, 16 May 2002 11:30:18 +0200
On Wednesday, May 15, 2002, at 07:54 PM, Chris Parker wrote:
Again: the bits on disk for the underlying filesystem "truth" are in
English. The view presented to the user is localized.
Presenting parts of the path to the user should be done using
NSFileManager's -displayNameAtPath method, which already takes this
into account.
I see a:
[ ] little
[ ] big
[ ] huge
issue here.
Some software are displaying the full file's path to show where a file
will be stored. Let's say the Finder is doing this currently (badly
since the OS X Finder believes the standard file separator is ':' on Mac
OS X but that's another story).
The question is: how is it possible to get the localized version of the
path since -displayNameAtPath only display the last component of the
path?
Since I don't have access to the exotic animal release, there might be a
new API to do this but it would require using another "which version of
the AppKit am I using?" test.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.