• 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 08:19:48 -0700

On Jun 15, 2013, at 8:08 AM, Gordon Apple <email@hidden> wrote:

> I shouldn¹t need to look at the context.

You must ALWAYS check the context.

>
> OMG!  I thought for sure I had checked awakeFromNib.  That is the problem.
> My view-based outline view has issues.  makeViewWithIdentifier:owner: is
> causing the owner¹s awakeFromNib to get called each time.  It looks like I
> have run into another bug in view-based outlineViews.  Bug report time.  I¹m
> going to have to figure out how to get around this.  Maybe set a flag to
> insure awakeFromNib only gets called once.

This is not a bug. Please read the Resource Programming Guide. Unlike iOS, -awakeFromNib is sent to File's Owner as well as every object deserialized from the nib. OS X has behaved like this for 20 years.

--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>
    • 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: If Statements In Objective C For IOS Development
  • Previous by thread: Re: Multiple Observations
  • Next by thread: Re: Multiple Observations
  • Index(es):
    • Date
    • Thread