• 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: Seth Willits <email@hidden>
  • Date: Sat, 15 Jun 2013 16:58:54 -0700

On Jun 15, 2013, at 1:32 PM, Gordon Apple wrote:

> I still think the compiler should be smart enough to block this
> without having to put a on-shot blocking flag in awakeFromNib, which I have
> now done.

My question would be, why are you using awakeFromNib specifically in the first place? I really do find that it's not the right place to do things. IMO an instance should not expect to be loaded from a nib (which means it shouldn't use awakeFromNib), and any File's Owner which is loading a nib can perform its duties after loading the nib rather than in its own awakeFromNib. When both of those things are true, there are better places to do setup work and avoids the whole mess of trying to manage flags for which awakeFromNib call is mapped to which nib load.


--
Seth Willits




_______________________________________________

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


References: 
 >Re: Multiple Observations (From: Gordon Apple <email@hidden>)

  • Prev by Date: Re: Account framework
  • Next by Date: IB keeps changing my constraints when I resize the cell
  • Previous by thread: Re: Multiple Observations
  • Next by thread: Re: Multiple Observations
  • Index(es):
    • Date
    • Thread