• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
New NSDocument
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Prev by Date: Re: Carbon Events vs Cocoa Events
  • Next by Date: Re: NSFileManager notification
  • Previous by thread: Re: Carbon Events vs Cocoa Events
  • Next by thread: Re: NSMachPort to raw mach port
  • Index(es):
    • Date
    • Thread