• 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: problem using User Defaults bindings for sample data
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >problem using User Defaults bindings for sample data (From: David Feldman <email@hidden>)

  • Prev by Date: modal window + sheet
  • Next by Date: NSImage flipping
  • Previous by thread: Re: problem using User Defaults bindings for sample data
  • Next by thread: NSTableView subclass with column-spanning text?
  • Index(es):
    • Date
    • Thread