[Q] creating document packages?
[Q] creating document packages?
- Subject: [Q] creating document packages?
- From: Steve Christensen <email@hidden>
- Date: Tue, 16 Dec 2003 18:00:08 -0800
I have a couple of [potentially newbie] questions related to creating
document packages programmatically. I'm still coming up to speed on
Cocoa, so be kind to me. :-)
1. From my reading, if my app reads/writes document packages instead of
single-file documents, I need to implement
-fileWrapperRepresentationOfType:type: and
-loadFileWrapperRepresentation:ofType:. Is this correct, and if so, do
I need to do anything more than to set LSTypeIsPackage=true in the
document array in my info.plist?
2. What is the correct way to set the "directory=package" file
attribute for the root NSFileWrapper representing the package
directory?
3. Off-topic, but the New and Open menu items are disabled in my app.
My document class's -init method is being called so I at least know
that the info.plist appears to be set up correctly. Is there anything I
can do - log info, whatever - that can provide some clues? Work is
still in-progress so it's entirely possible that I've failed to
override one of the required methods, but it'd be nice to figure out
what... :-)
Thanks,
steve
_______________________________________________
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.