• 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
Binding table column to complex NSDictionary
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Binding table column to complex NSDictionary
      • From: Keary Suska <email@hidden>
  • Prev by Date: Re: Obj-C and Mac OS BSIT Degree
  • Next by Date: Re: Obj-C and Mac OS BSIT Degree
  • Previous by thread: Re: NSRect to carbon Rect conversion
  • Next by thread: Re: Binding table column to complex NSDictionary
  • Index(es):
    • Date
    • Thread