Re: *** -[NSCFDictionary setObject:forKey:]: mutating method sent to immutable object
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