• 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
Re: Can't get an NSDocument subclass to load nib...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Can't get an NSDocument subclass to load nib...


  • Subject: Re: Can't get an NSDocument subclass to load nib...
  • From: Brent Gulanowski <email@hidden>
  • Date: Sun, 23 Jun 2002 11:00:03 -0400

On Sunday, June 23, 2002, at 01:53 AM, Jiva DeVoe wrote:

I have created an NSDocument subclass and set it as the owner for a nib
file. I have also overridden the method "windowNibName" in the document to
return the name of the nib file (sans extension). Yet, when I init the
document, it doesn't seem to call windowNibName at all, and thus, I get no
NSWindowControllers for it. Is there some special initializer syntax I need
to call for this to work? Here's my init n stuff:

Did you remember to change the document class and other document information in the Target's Application settings? The default for the class name is "myDocument", and if you don't change that (in this case, to "personDocument"), you'll get a "could not load document" error dialog when you request a new document.

Brent
--
Brought to you by Mail on Mac OS X. Think Different.
_______________________________________________
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.

References: 
 >Can't get an NSDocument subclass to load nib... (From: Jiva DeVoe <email@hidden>)

  • Prev by Date: recovering question
  • Next by Date: Scroller position
  • Previous by thread: Re: Can't get an NSDocument subclass to load nib...
  • Next by thread: Re: Changing formatter for specific cells in the same table column?
  • Index(es):
    • Date
    • Thread