Re: Proper way to create a singleton without @synchronized ?
Re: Proper way to create a singleton without @synchronized ?
- Subject: Re: Proper way to create a singleton without @synchronized ?
- From: Scott Ribe <email@hidden>
- Date: Sun, 17 Apr 2011 13:28:27 -0600
On Apr 17, 2011, at 12:43 PM, WT wrote:
> That's not what I keep reading/hearing. Apple's made a big push for GCD in WWDC 2010, even on iOS devices.
Yeah, for actually performing tasks on background threads, which is not what you're doing here.
> I think that's an oversimplification of how things get used. See my reply to Kyle's last message for some examples of how/why I use singletons.
I saw that message and was responding to it. Why exactly do these classes of yours need enforced singletons rather than single instances instantiated at app initialization? What do you gain?
--
Scott Ribe
email@hidden
http://www.elevated-dev.com/
(303) 722-0567 voice
_______________________________________________
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