Re: Frameworks & Nibs
Re: Frameworks & Nibs
- Subject: Re: Frameworks & Nibs
- From: Amul Goswamy <email@hidden>
- Date: Mon, 15 Mar 2004 09:48:35 -0800
Look at SimpleMultiWindow and MultipleNibTabView )in
(/Developer/Examples/InterfaceBuilder). Create a class with the
necessary outlets and actions you need to communicate with the UI of
that nib. Set that class as the custom class of the File's Owner and
wire it up appropriately. Instantiate that class in your code and
specify that instance as the owner when you load the nib using NSBundle
Additions.
http://developer.apple.com/documentation/Cocoa/Reference/
ApplicationKit/ObjC_classic/Classes/NSBundleAdditions.html
/Developer/Examples/InterfaceBuilder/SimpleMultiWindow
/Developer/Examples/InterfaceBuilder/MultipleNibTabView
Amul Goswamy
Interface Builder
Apple
On Mar 15, 2004, at 3:26 AM, Daniel Todd Currie wrote:
So I've decided the best way to bring a standardized panel to all of
my apps is by creating a framework. This way I won't have to worry
about extra nibs, images, etc, in all of my projects. Any alternative
ideas would be welcome.
The problem I am having is that I have this beautiful nib and I have
no idea how to communicate with the interface elements. If I create
an instance of my panel's controller class in the nib, then I have no
way of accessing that instance from outside the framework.
I've looked at some examples in the Cocoa frameworks, like
NSColorPanel.nib, and all I can tell is that it does not use
instances. But how does one receive IBActions from the NSColorPanel
interface elements if nothing is linked in IB? I'm thoroughly
confused.
Thanks in advance,
-- Daniel Todd Currie
_______________________________________________
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.
_______________________________________________
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.