• 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: Class Singleton Instantiation
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Class Singleton Instantiation


  • Subject: Re: Class Singleton Instantiation
  • From: Eric Hermanson <email@hidden>
  • Date: Thu, 14 May 2009 23:39:53 -0400

Thank You. Good explanation. The example/doc makes sense and seems to be the safest route, although possibly overkill for private code that is not going to be distributed to other developers.

- Eric



On May 14, 2009, at 9:46 PM, Kiel Gillard wrote:

On 15/05/2009, at 11:32 AM, Eric Hermanson wrote:

Is the above paradigm any better/worse than doing something simpler, like the following (which is the paradigm I've been using)

The sample code prevents other developers from allocating subsequent instances.


See <http://developer.apple.com/DOCUMENTATION/Cocoa/Conceptual/CocoaFundamentals/CocoaObjects/CocoaObjects.html#//apple_ref/doc/uid/TP40002974-CH4-SW32 > for more information.

Kiel

_______________________________________________

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: 
 >Class Singleton Instantiation (From: Eric Hermanson <email@hidden>)
 >Re: Class Singleton Instantiation (From: Kiel Gillard <email@hidden>)

  • Prev by Date: Re: [Newbie] Binding an NSArrayController with/without NSObjectController
  • Next by Date: Re: Using an arraycontroller for different object classes
  • Previous by thread: Re: Class Singleton Instantiation
  • Next by thread: NSCFArray autoreleased with no pool in place
  • Index(es):
    • Date
    • Thread