• 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: Graham Cox <email@hidden>
  • Date: Tue, 17 Nov 2009 11:44:49 +1100

On 17/11/2009, at 6:21 AM, Harry Plate wrote:

> 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?


You pass your class (instance) as owner. Therefore you have it. You don't need to get it again from the nib, it's the same object that you passed in the first place.

By the way, passing another object as File's Owner is slightly unusual - normally that would be 'self', in that the controller responsible for the nib is usually its owner.

--Graham_______________________________________________

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: Re: NSPopUpButton submenu's
  • Next by Date: Re: NSUndoManager and runModalForWindow: (again)
  • Previous by thread: Re: Accessing FilesOwner fm controller
  • Next by thread: How to stop NSScrollView from scrolling to top when horizontally resizing contained NSTextView?
  • Index(es):
    • Date
    • Thread