File Package without NSDocument
File Package without NSDocument
- Subject: File Package without NSDocument
- From: Carl Norum <email@hidden>
- Date: Tue, 20 May 2003 19:03:04 -0600
Hi everyone - my current app is going to need file packages (a la RTFD)
for its document format. Because of some weird requirements, I don't
want to use NSDocument's
fileWrapperRepresentation method, so I am using the readFromFile: and
writeToFile: methods.
The problem is that when I create a directory using NSFileManager, it
isn't a bundle like I want it to be (shows up as a folder in the
finder, instead of using my document icon and being unopenable).
The file behaves properly if I do a "SetFile -a B DOCUMENT" from the
command line.
NSFileManager doesn't appear to support the options from SetFile (has
bundle, visibility, etc). What should I be looking for?
Thanks a bunch!
--
Carl J Norum
5th Year Electrical Engineering/Computer Science Student
University of Saskatchewan
Saskatoon, Canada
http://norum.homeunix.net/~carl/
_______________________________________________
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.