Re: Instantiating Objects in Nib Files
Re: Instantiating Objects in Nib Files
- Subject: Re: Instantiating Objects in Nib Files
- From: Dietrich Epp <email@hidden>
- Date: Sat, 15 Nov 2003 23:52:57 -0800
On Nov 15, 2003, at 11:23 PM, mmalcolm crawford wrote:
On Nov 15, 2003, at 10:12 PM, Dietrich Epp wrote:
I already tried dragging the NSDocumentController header on (strange
that the actions aren't there by default), and I'm not using a
subclass.
Is there any particular reason, then, for trying to instantiate it in
the nib? Just send messages to it programatically:
[NSDocumentController sharedDocumentController]
(*As far as I can tell*, all the action methods it implements should
be handled automatically.)
I wanted to put it in the nib so I could make nib connections to it.
Then, when I subclassed it, I wouldn't have to change that part. It's
not important.
And no, the action methods aren't automatic... something has to connect
the Save menu command to something. For now I'll just connect it to
the first responder.
_______________________________________________
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.