• 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: *** -[NSCFDictionary setObject:forKey:]: mutating method sent to immutable object
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: *** -[NSCFDictionary setObject:forKey:]: mutating method sent to immutable object


  • Subject: Re: *** -[NSCFDictionary setObject:forKey:]: mutating method sent to immutable object
  • From: Daniel Child <email@hidden>
  • Date: Thu, 21 Feb 2008 10:51:51 -0500

Yes! What an idiotic mistake. I had never had occasion to use mutableCopy until now.

Thanks.

On Feb 21, 2008, at 9:21 AM, Hamish Allan wrote:

I'm puzzled. I don't see why memory would be an issue. (This is my first
pass, so there hasn't been a chance to dealloc anything.) My setters all use
the release-copy paradigm.

You are taking a copy of dataValue, rather than a mutableCopy?

_______________________________________________

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: 
 >*** -[NSCFDictionary setObject:forKey:]: mutating method sent to immutable object (From: Daniel Child <email@hidden>)
 >Re: *** -[NSCFDictionary setObject:forKey:]: mutating method sent to immutable object (From: "Hamish Allan" <email@hidden>)
 >Re: *** -[NSCFDictionary setObject:forKey:]: mutating method sent to immutable object (From: "Hamish Allan" <email@hidden>)

  • Prev by Date: Re: MPTask equivalent?
  • Next by Date: Optional methods
  • Previous by thread: Re: *** -[NSCFDictionary setObject:forKey:]: mutating method sent to immutable object
  • Next by thread: Visual iTunes Plugins Questions
  • Index(es):
    • Date
    • Thread