Re: Frameworks & Nibs
Re: Frameworks & Nibs
- Subject: Re: Frameworks & Nibs
- From: Stephane Sudre <email@hidden>
- Date: Mon, 15 Mar 2004 12:41:16 +0100
On Monday, March 15, 2004, at 12:26 PM, 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.
The File's Owner is the "instance".
_______________________________________________
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.