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 (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to