Re: how to determine file path from a document's NSFileWrapper?
Re: how to determine file path from a document's NSFileWrapper?
- Subject: Re: how to determine file path from a document's NSFileWrapper?
- From: Steve Christensen <email@hidden>
- Date: Sat, 27 Dec 2003 21:57:04 -0800
I'd already looked at -filename, but the comment next to its
declaration in NSFileWrapper.h says:
The filename is best thought of as the last known actual file name
of the wrapper. [...] It is just a filename, not a full path. Its
extension indicates its type.
Any other possibilities?
steve
On Dec 27, 2003, at 4:03 PM, Louis C. Sacha wrote:
Anyway, the NSFileWrapper method
- (NSString *)filename;
should return the path of the file wrapper.
My document package class has a NSFileWrapper passed to
-loadFileWrapperRepresentation:ofType:. This is fine except that I
need to determine the file path for some of the files within the
package (images, etc.) since methods in other classes expect either a
NSURL or a NSString containing the full path.
How can I determine, at the very least, the base path associated with
the document's file wrapper?
_______________________________________________
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.