• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Frameworks & Nibs
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


References: 
 >Frameworks & Nibs (From: Daniel Todd Currie <email@hidden>)

  • Prev by Date: View resizing and textured windows
  • Next by Date: Re: Creating NSImage with NSData
  • Previous by thread: Frameworks & Nibs
  • Next by thread: Re: Frameworks & Nibs
  • Index(es):
    • Date
    • Thread