• 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: Stumped with Binding a User Default NSDictionary
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Stumped with Binding a User Default NSDictionary


  • Subject: Re: Stumped with Binding a User Default NSDictionary
  • From: Scott Stevenson <email@hidden>
  • Date: Sun, 3 Oct 2004 14:18:31 -0700


On Oct 3, 2004, at 12:32 PM, Keith Renz wrote:

In my user defaults is a NSDictionary of NSDictionarys. Each of the sub-dictionaries has 2 key-values pairs. I would like to display this dictionary as a 3-column table. The 1st column would be the keys of the main dictionary. The 2nd and 3rd columns would be the values for the keys of the sub-dictionaries. I can set this up manually with a table data source, etc., but I'd really like to use Cocoa Bindings. Can I use an NSUserDefaultsController to display this table? I can't find any good examples on how to do this when the user default object is a dictionary.

There's no easy way to do this with bindings that I'm aware of. You could make it work with indexed accessors, but if you already know how to make it work with datasource methods, I'd just do that.

I think the bindings folks got the message at WWDC that better support for dictionaries would be appreciated, but it's always good to file enhancement requests so they have a feel for what's important to people.

- Scott

--
http://treehouseideas.com/
http://theobroma.treehouseideas.com/ [blog]

_______________________________________________
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: 
 >Stumped with Binding a User Default NSDictionary (From: Keith Renz <email@hidden>)

  • Prev by Date: Re: NSTextView crashes with web content
  • Next by Date: iPod Detection and Development.
  • Previous by thread: Stumped with Binding a User Default NSDictionary
  • Next by thread: detecting a control's value changing, bindings, null placeholder
  • Index(es):
    • Date
    • Thread