Re: Multiple Observations
Re: Multiple Observations
- Subject: Re: Multiple Observations
- From: Kyle Sluder <email@hidden>
- Date: Sat, 15 Jun 2013 09:10:19 -0700
On Jun 15, 2013, at 8:54 AM, Gordon Apple <email@hidden> wrote:
> Kyle,
>
> One of us is missing the point. Yes, awakeFromNib gets called for these objects. The question is why does the viewController’s awakeFromNib get called every time a cell view is instantiated or copied? That cell view’s awakeFromNib should get called, not the main viewController’s awakeFromNib.
Because your view controller is the delegate for the outline view, and thus it acts as the File's Owner for loading the cell view's embedded nib. Think about it: the cell view can't be File's Owner, because it lives in the nib.
Please read the documentation for -[<NSTableViewDelegate> tableView:viewForTableColumn:row:] and -[NSTablezview makeViewWithIdentifier:owner:].
--Kyle Sluder
_______________________________________________
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