Re: Accessing FilesOwner fm controller
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