Skip navigation.
 
mlRe: Stumped with Binding a User Default NSDictionary
FROM : Scott Stevenson
DATE : Sun Oct 03 23:18:31 2004

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]

Related mailsAuthorDate
mlStumped with Binding a User Default NSDictionary Keith Renz Oct 3, 21:32
mlRe: Stumped with Binding a User Default NSDictionary Scott Stevenson Oct 3, 23:18