Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Locate path to file's directory



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:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.