• 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: NSRecursiveLock problems
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSRecursiveLock problems


  • Subject: Re: NSRecursiveLock problems
  • From: Greg Guerin <email@hidden>
  • Date: Tue, 22 Dec 2009 14:19:00 -0700

PCWiz wrote:

So for example I could do performSelectorOnMainThread with an NSMutableArray, for example, then have the method add the result object to the array and return it?


As long as no other threads were doing anything with that array, I think that would work.

Or define a very simple class with a couple of properties. The obvious advantage is that a class gives you precise control over mutability, thread-safety, types, etc.

  -- GG

_______________________________________________

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: NSRecursiveLock problems
      • From: PCWiz <email@hidden>
  • Prev by Date: Re: NSRecursiveLock problems
  • Next by Date: Re: Autorotation for a subview
  • Previous by thread: Re: NSRecursiveLock problems
  • Next by thread: Re: NSRecursiveLock problems
  • Index(es):
    • Date
    • Thread