• 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: Kiel Gillard <email@hidden>
  • Date: Fri, 15 May 2009 11:46:36 +1000

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


  • Follow-Ups:
    • Re: Class Singleton Instantiation
      • From: Eric Hermanson <email@hidden>
    • Re: Class Singleton Instantiation
      • From: Kiel Gillard <email@hidden>
References: 
 >Class Singleton Instantiation (From: Eric Hermanson <email@hidden>)

  • Prev by Date: NSCFArray autoreleased with no pool in place
  • Next by Date: Fetch Requests on Non Standard Classes in Core Data
  • Previous by thread: Class Singleton Instantiation
  • Next by thread: Re: Class Singleton Instantiation
  • Index(es):
    • Date
    • Thread