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 22:12:08 -0800
On Nov 15, 2003, at 5:55 PM, Shaun Wexler wrote:
On Nov 15, 2003, at 4:54 PM, Dietrich Epp wrote:
I can't seem to instantiate an NSDocumentController in a nib file.
It's another one of those things that I've done before, but something
has changed or I've forgotten something. I select
NSDocumentController in the classes tab and in the classes menu...
instantiate is disabled. I try to create an NSObject then select
NSDocumentController as its subclass, but I can't figure out how to
create an NSObject either. What gives? Am I missing something
obvious?
In IB, you'd select the Classes tab, which enables the Read Files...
menu item. Navigate to the AppKit framework and select the header
file for NSDocumentController. Create a subclass, which then is able
to be instantiated. The easiest way is to drag a copy of your own
subclass's header file from your project onto the IB window, and then
you can instantiate it.
I already tried dragging the NSDocumentController header on (strange
that the actions aren't there by default), and I'm not using a
subclass.
_______________________________________________
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.