• 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: Multiple Observations
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Multiple Observations
      • From: Gordon Apple <email@hidden>
References: 
 >Re: Multiple Observations (From: Gordon Apple <email@hidden>)

  • Prev by Date: Re: Multiple Observations
  • Next by Date: Re: Combining pan, zoom, and rotate gestures into one?
  • Previous by thread: Re: Multiple Observations
  • Next by thread: Re: Multiple Observations
  • Index(es):
    • Date
    • Thread