• 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
-init and awakeFromNib called twice.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

-init and awakeFromNib called twice.


  • Subject: -init and awakeFromNib called twice.
  • From: Johnny Lundy <email@hidden>
  • Date: Fri, 25 Apr 2008 12:41:20 -0400

I know I saw something somewhere in reference to these methods getting called twice on app launch, but can't find it with searching.

Is this expected behavior for vanilla -init and (void) awakeFromNib methods? I'm doing some short loops in these methods and calling other instance methods. For now, no harm is done with all this stuff being done twice, but I'd rather not have to worry about that if I add code.

I don't see most examples routinely checking for a second invocation in these init methods so I wonder what is going on.

Other than that, all the advice I got here has worked and I now have 350 lines of code and only one line is glue. Very nice learning experience for Bindings and I thank all who helped.


_______________________________________________

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: -init and awakeFromNib called twice.
      • From: Jonathan Hess <email@hidden>
  • Prev by Date: mask nsimage
  • Next by Date: Re: mask nsimage
  • Previous by thread: Re: mask nsimage
  • Next by thread: Re: -init and awakeFromNib called twice.
  • Index(es):
    • Date
    • Thread