Re: problem using User Defaults bindings for sample data
Re: problem using User Defaults bindings for sample data
- Subject: Re: problem using User Defaults bindings for sample data
- From: Scott Stevenson <email@hidden>
- Date: Fri, 17 Sep 2004 22:21:46 -0700
On Sep 17, 2004, at 9:30 AM, David Feldman wrote:
I've left everything else as is. What happens is that the Add button
works just fine and adds a blank row. I can then put a cell into edit
mode and type some text, but when I try to finish editing I get an
error in the Run Log: "[NSCFDictionary setObject:forKey:]: mutating
method sent to immutable object" A look at the plist file in
~/Preferences reveals that while a Dictionary item has been added to
the
The user defaults system (property lists) doesn't differentiate between
immutable and mutable objects, so you're getting back immutable
dictionaries:
<http://www.cocoabuilder.com/search/archive/cocoa?
words=user+defaults+bindings+immutable>
You have to get a mutable copy to work with.
- Scott
--
Tree House Ideas
http://treehouseideas.com/
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden