Re: Can't get an NSDocument subclass to load nib...
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.