• 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: Singletons and Threads
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Singletons and Threads


  • Subject: Re: Singletons and Threads
  • From: "Clark Cox" <email@hidden>
  • Date: Sun, 16 Sep 2007 11:21:27 -0700

On 9/16/07, Keith Duncan <email@hidden> wrote:
> If I recall correctly when using @synchronized() you should use a
> *specific* object, not a variable such as self. I usually write my
> singleton class methods to use [MySingletonClass class] as the
> semaphore.

In the case of +initialize, self *is* a specific object. It is the
class itself. [MySingletonClass class] and self are the same thing.

--
Clark S. Cox III
email@hidden
_______________________________________________

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

References: 
 >Singletons and Threads (From: "Randall Wood" <email@hidden>)
 >Re: Singletons and Threads (From: "Clark Cox" <email@hidden>)
 >Re: Singletons and Threads (From: "Randall Wood" <email@hidden>)
 >Re: Singletons and Threads (From: PGM <email@hidden>)
 >Re: Singletons and Threads (From: Chris Hanson <email@hidden>)
 >Re: Singletons and Threads (From: "Shawn Erickson" <email@hidden>)
 >Re: Singletons and Threads (From: Keith Duncan <email@hidden>)

  • Prev by Date: Re: Mixing C++ and Obj-C (odd compile errors)
  • Next by Date: Re: Thanks to LA CocoaHeads on my pasteboard bug
  • Previous by thread: Re: Singletons and Threads
  • Next by thread: Determine pressed keys while dragging FROM OTHER application
  • Index(es):
    • Date
    • Thread