Re: Stumped with Binding a User Default NSDictionary
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