On 7 Oct 2010, at 19:58, Hans van der Meer wrote:
> 
> I am not very happy with the static variable but do not see another way to 
> accomplish this. I fear my solution is not as much in the spirit of Cocoa 
> programming as it should be. 
> Is there a better way?

The Cocoa way is to wrap your static in a singleton:

http://developer.apple.com/library/mac/documentation/Cocoa/Conceptual/CocoaFundamentals/CocoaObjects/CocoaObjects.html#//apple_ref/doc/uid/TP40002974-CH4-SW32

Regards

Jonathan

_______________________________________________

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