• 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: Proper way to create a singleton without @synchronized ?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Proper way to create a singleton without @synchronized ?
      • From: WT <email@hidden>
References: 
 >Proper way to create a singleton without @synchronized ? (From: WT <email@hidden>)
 >Re: Proper way to create a singleton without @synchronized ? (From: Scott Ribe <email@hidden>)
 >Re: Proper way to create a singleton without @synchronized ? (From: WT <email@hidden>)

  • Prev by Date: How do I disable Xcode 4's SVN support?
  • Next by Date: Re: How do I disable Xcode 4's SVN support?
  • Previous by thread: Re: Proper way to create a singleton without @synchronized ?
  • Next by thread: Re: Proper way to create a singleton without @synchronized ?
  • Index(es):
    • Date
    • Thread