On Jun 15, 2013, at 8:54 AM, Gordon Apple <g...@ed4u.com> 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 (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