Binding table column to complex NSDictionary
Binding table column to complex NSDictionary
- Subject: Binding table column to complex NSDictionary
- From: David Bainbridge <email@hidden>
- Date: Thu, 3 Jan 2008 11:34:29 -0600
I have a data structure that basically represents an XML file. The
top level is an NSDictionary and can have values which are
NSDictionaries themselves and/or NSArrays.
As an example I need to bind to a table column the results you would
get from the following statement:
[[myObject properties] valueForKeyPath:@"employees.name"]
properties is an NSMutableDictionary; the key "employees" is an
NSArray; each object in the NSArray is an NSDictionary which in this
case has a key "name".
The valueForKeyPath statement above returns an array of names as I
expected but I would like to bind that (given myObject) to a table
column within IB.
I know I can set an ivar to the valueForKeyPath result but I was
hoping to simply specify this in IB without code.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden