Locate path to file's directory
Locate path to file's directory
- Subject: Locate path to file's directory
- From: John James <email@hidden>
- Date: Sun, 27 Jan 2008 08:40:18 -0500
My program has a file which contains the locations of more files to be
read from a given directory. I want to discover the current directory
of a file being read so I can store these designations relative to it.
I am trying to do this in:
MyDocument.readFromData:typeName:error.
I tried NSFileManager currentDirectoryPath but that is the wrong
directory. I can get the path of the document being read (with
NSDocument fileURL and path ) and delete its name from the path, but
I thought there must be a more direct API. I can't find it.
Is there?
Thanks
_______________________________________________
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