• 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: Accessing FilesOwner fm controller
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Accessing FilesOwner fm controller


  • Subject: Re: Accessing FilesOwner fm controller
  • From: Ken Thomases <email@hidden>
  • Date: Mon, 16 Nov 2009 17:07:23 -0600

On Nov 16, 2009, at 1:21 PM, Harry Plate wrote:

> I am writing a plugin to another application, and I must manage my own NIBs.

> But, what I am having trouble with is communicating with "File's Owner".
> When I instantiate the NIB, I pass my class as owner - then when the
> controller is called via -awakeFromNib, I need to communicate with that
> class to get some additional information.
>
> How is that done?

If I'm understanding what you're asking, the answer is that the class of your controller needs to declare an outlet.  In the NIB, you connect that outlet to File's Owner.  By the time of -awakeFromNib, the outlet will have been set and will point to the object which owns the NIB.

Cheers,
Ken

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Accessing FilesOwner fm controller (From: Harry Plate <email@hidden>)

  • Prev by Date: NSOpenPanel accessoryView and new windows...
  • Next by Date: Re: Stack-based C++ class to wrap NSAutoreleasePool
  • Previous by thread: Accessing FilesOwner fm controller
  • Next by thread: Re: Accessing FilesOwner fm controller
  • Index(es):
    • Date
    • Thread