• 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: Better sorting using threads?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Better sorting using threads?


  • Subject: Re: Better sorting using threads?
  • From: Greg Parker <email@hidden>
  • Date: Fri, 12 Mar 2010 16:01:19 -0800

On Mar 12, 2010, at 3:23 PM, Paul Sanders wrote:
> Just a heads-up to say that when I created an NSMutableDictionary on the main thread and then tried to mutate it in a subthread, Snow Leopard threw an exception ("trying to mutate a non-mutable object", or somesuch).  I was, of course, protecting the mutable dictionary against reentrancy problems and the same code worked fine on Leopard and Tiger.  I guess Apple think it's dangerous to let us play with the sharp toys...

"mutating method sent to immutable object", you mean? That suggests your NSMutableDictionary object isn't as mutable as you thought. It might not be a thread-related bug.


--
Greg Parker     email@hidden     Runtime Wrangler


_______________________________________________

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: Better sorting using threads?
      • From: "Paul Sanders" <email@hidden>
References: 
 >Better sorting using threads? (From: Graham Cox <email@hidden>)
 >Re: Better sorting using threads? (From: Ken Thomases <email@hidden>)
 >Re: Better sorting using threads? (From: Ken Ferry <email@hidden>)
 >Re: Better sorting using threads? (From: Andrew James <email@hidden>)
 >Re: Better sorting using threads? (From: Bill Bumgarner <email@hidden>)
 >Re: Better sorting using threads? (From: Ken Ferry <email@hidden>)
 >Re: Better sorting using threads? (From: Gwynne Raskind <email@hidden>)
 >Re: Better sorting using threads? (From: Andrew James <email@hidden>)
 >Re: Better sorting using threads? (From: Kyle Sluder <email@hidden>)
 >Re: Better sorting using threads? (From: Chris Ridd <email@hidden>)
 >Re: Better sorting using threads? (From: "Paul Sanders" <email@hidden>)

  • Prev by Date: Re: incorrect bitmap date from NSBitmapImageRep from NSDate
  • Next by Date: Re: 10.6 Base, 10.5 Target, runs fine on everything except Intel 10.5 [KIND OF SOLVED]
  • Previous by thread: Re: Better sorting using threads?
  • Next by thread: Re: Better sorting using threads?
  • Index(es):
    • Date
    • Thread