• 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: Gordon Apple <email@hidden>
  • Date: Sat, 15 Jun 2013 11:51:32 -0500
  • Thread-topic: Multiple Observations

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" <email@hidden> wrote:

> On Jun 15, 2013, at 8:54 AM, Gordon Apple <email@hidden> 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 (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: Kyle Sluder <email@hidden>
References: 
 >Re: Multiple Observations (From: Kyle Sluder <email@hidden>)

  • Prev by Date: Re: Multiple Observations
  • Next by Date: Re: Multiple Observations
  • Previous by thread: Re: Multiple Observations
  • Next by thread: Re: Multiple Observations
  • Index(es):
    • Date
    • Thread