Re: Singletons on Leopard with GC

2008-04-11 Thread Citizen
Apple has added a comment about garbage-collected singletons in its Cocoa Fundamentals Guide: http://developer.apple.com/documentation/Cocoa/Conceptual/CocoaFundamentals/CocoaObjects/chapter_3_section_10.html Basically you create a singleton as shown in the guide's example, but in a garbage-c

Singletons on Leopard with GC

2008-04-10 Thread Karl Moskowski
I have a couple of classes for which I'd like to use the singleton pattern. I read some of the old posts on this list and at cocoadev.com about approaches to take. They mention Apple's recommendations about overriding retain, release, etc. to essentially turn them into no-ops. However, th