how to get a file's long name?
how to get a file's long name?
- Subject: how to get a file's long name?
- From: Matt Neuburg <email@hidden>
- Date: Fri, 30 Aug 2002 14:48:12 -0700
According to the docs, NSFileManager "insulates an application from the
underlying file system". But in reality the results you get from
NSFileManager are very much dependent upon the underlying file system.
Here's a case in point.
Let's say I hook up my portable to my main computer in Firewire Target mode
and examine one of the folders on my portable using NSFileManager
directoryContentsAtPath. One of the files is named:
smallGraphiteHighlightedKnob.tiff
Now I unhook my portable and start it up into OS 9, and hook it back up to
my main computer via FileSharing (i.e. the OS 9 computer is the "server").
I examine the same folder on my portable using NSFileManager
directoryContentsAtPath. The same file is now named:
smallGraphiteHighlig#206E0.tiff
My problem is: How can I *really* insulate my application from this
phenomenon? That is, to put it in a nutshell, how can I get the same file
name (i.e. the long one) in both cases? Thx - m.
PS I don't remember having this problem pre-Jaguar. Is this a new problem,
or did I just not notice before?
--
matt neuburg, phd = email@hidden,
http://www.tidbits.com/matt
pantes anthropoi tou eidenai oregontai phusei
Subscribe to TidBITS! It's free and smart.
http://www.tidbits.com/
_______________________________________________
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.