I don¹t seen anything about this in the referenced docs. I see that awakeFromNib is now an informal protocol, but I see nothing about it being called as a delegate method for the table (outline) view. It has always been an instance method of the object
On 6/15/13 11:10 AM, "Kyle Sluder" <k...@ksluder.com> wrote: > On Jun 15, 2013, at 8:54 AM, Gordon Apple <g...@ed4u.com> wrote: > >> Re: Multiple Observations 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 (Cocoa-dev@lists.apple.com) 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: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com