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

Re: Binding table column to complex NSDictionary


  • Subject: Re: Binding table column to complex NSDictionary
  • From: Keary Suska <email@hidden>
  • Date: Thu, 03 Jan 2008 13:13:33 -0700
  • Thread-topic: Binding table column to complex NSDictionary

on 1/3/08 10:34 AM, email@hidden purportedly said:

> [[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.

You'll need the "employees" array as the content of an NSArrayController, to
which you will bind your column value.

Best,

Keary Suska
Esoteritech, Inc.
"Demystifying technology for your home or business"


_______________________________________________

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

References: 
 >Binding table column to complex NSDictionary (From: David Bainbridge <email@hidden>)

  • Prev by Date: Garbage collection, leaks and drains
  • Next by Date: SBApplication taking forever to instantiate
  • Previous by thread: Binding table column to complex NSDictionary
  • Next by thread: Circular initialization of controllers in NIB file
  • Index(es):
    • Date
    • Thread