• 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: "Hamish Allan" <email@hidden>
  • Date: Tue, 19 Feb 2008 22:39:23 +0000

On Feb 19, 2008 10:18 PM, Daniel Child <email@hidden> wrote:

> Changing the init method worked. I am still a little puzzled though.
> I later renamed the ivar to localDataCopy (which certainly wouldn't
> be a part of the NSWindow class), and the same error occurred. My
> accessors definitely assume an NSMutableDictionary. Does that mean a
> memory-munching bug????

If you [data setObject:@"test_value" forKey:@"test_key"] just after
you create the NSMutableDictionary, and then NSLog(@"%@", data) just
before the line that gives the error, you should be able to
differentiate between a memory-muncher and an unarchival issue.

Hamish
_______________________________________________

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>)

  • Prev by Date: Core Data Performance
  • Next by Date: Re: Accessing buffers in NSData/NSMutableData under garbage collection
  • Previous by thread: Re: *** -[NSCFDictionary setObject:forKey:]: mutating method sent to immutable object
  • Next by thread: Re: *** -[NSCFDictionary setObject:forKey:]: mutating method sent to immutable object
  • Index(es):
    • Date
    • Thread