New NSDocument
New NSDocument
- Subject: New NSDocument
- From: Brock Brandenberg <email@hidden>
- Date: Mon, 1 Apr 2002 11:07:45 -0600
I've had a problem creating new NSDocuments from an app that supports
two types of documents, but finally found some info in a release note
called "NSDocument FAQs". Funny how they don't divide these up and link
them into the actual documentation area that would make sense like the
Cocoa APIs or the NSDocument APIs.
Anyway, I was trying to use a normal alloc/init method on a document,
but the nib file for the document was not getting loaded because the
init method doesn't load the nib - some other external mechanism in the
doc controller does. However, the FAQ states "You can simply alloc/init
one with any initializer the subclass supports."
Is it possible to open an NSDocument subclass with alloc/init and have
it open it's associated nib file, or must you use the
NSDocumentController? Or might I be doing it all wrong?
Thanks,
Brock Brandenberg
----- industrial design @ bergdesign.com ------
_______________________________________________
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.