• 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: cocoa bindings NSTableColumn to @allKeys?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: cocoa bindings NSTableColumn to @allKeys?


  • Subject: Re: cocoa bindings NSTableColumn to @allKeys?
  • From: mmalc crawford <email@hidden>
  • Date: Mon, 31 Dec 2007 01:41:45 -0800


On Dec 30, 2007, at 11:08 PM, Michael Hanna wrote:

I want to make another tableview with a column that displays the photo
attributes of the selected photolist. Do I bind to the Flickr Photo
List NSArrayController? This is only displaying the photolist key
names ... how do I get at the values that that key represents? Do I
have to use an NSDictionaryController to do this?

It would certainly be easier if you used a dictionary controller (which you would use in place of the Flickr Photo
List array controller).
You can look at <http://developer.apple.com/samplecode/DictionaryController/index.html > to see how they're configured.


If you have to target Tiger, then you can in (likely in your own custom class, or a subclass of an array controller) observe the Flickr Photo List's selection (e.g. selectedObjects) and as that changes get the values for the selected key from the selection in the original array controller and set the values as the content for the values array controller.
I hope that makes sense?


mmalc

_______________________________________________

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: 
 >Re: cocoa bindings NSTableColumn to @allKeys? (From: Keary Suska <email@hidden>)
 >Re: cocoa bindings NSTableColumn to @allKeys? (From: mmalc crawford <email@hidden>)
 >Re: cocoa bindings NSTableColumn to @allKeys? (From: "Michael Hanna" <email@hidden>)

  • Prev by Date: QTMovieView disabled
  • Next by Date: Additive animation with Core Animation
  • Previous by thread: Re: cocoa bindings NSTableColumn to @allKeys?
  • Next by thread: Re: cocoa bindings NSTableColumn to @allKeys?
  • Index(es):
    • Date
    • Thread