• 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: Why would +[initialize] be called twice?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Why would +[initialize] be called twice?


  • Subject: Re: Why would +[initialize] be called twice?
  • From: Quincey Morris <email@hidden>
  • Date: Mon, 24 Aug 2009 10:29:43 -0700

On Aug 24, 2009, at 10:19, Michael A. Crawford wrote:

Why would the class initializer be called more than once when my app starts up? Is this expected behavior? In case you're wondering, it is called twice.

Yes, it can be invoked more than one. Searching developer.apple.com for "initialize twice" found the answer in the first hit -- the reason and the workaround are spelled out in (mirabile dictu!) the documentation of +initialize.



_______________________________________________

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: Why would +[initialize] be called twice?
      • From: "Michael A. Crawford" <email@hidden>
References: 
 >Why would +[initialize] be called twice? (From: "Michael A. Crawford" <email@hidden>)

  • Prev by Date: Re: Why would +[initialize] be called twice?
  • Next by Date: Re: Why would +[initialize] be called twice?
  • Previous by thread: Re: Why would +[initialize] be called twice?
  • Next by thread: Re: Why would +[initialize] be called twice?
  • Index(es):
    • Date
    • Thread