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

cocoa bindings NSTableColumn to @allKeys?


  • Subject: cocoa bindings NSTableColumn to @allKeys?
  • From: "Michael Hanna" <email@hidden>
  • Date: Sat, 29 Dec 2007 23:00:44 -0800

I have a model object YKKFlickrUser which aggregates an
NSMutableDictionary called m_photoLists which contains keys for
another model object, YKKPhotoList(I have accessors -photoLists and
-setPhotoLists).

In my controller class I have an NSPopUpButton bound to an
NSArrayController m_userController. On startup the m_user array is
populated and m_userController is bound to "AppController
alias"(NSObjectController, controller key > selection, model key path
> users).

The NSPopUpButton displays the users as expected.

I then created a table with a single table column. Making sure I
select the table column in IB, In the 'value' binding I

bind > Flickr Users,
controller key > "selection",
model key path > "photoLists.@allKeys"

I get a "(" in the table column:

http://img341.imageshack.us/img341/7998/picture1ie4.png

m_photoLists is an NSMutableDictionary. Is there any reason I should
use an array instead?

Mac OS X 10.5.1, IB 3, Xcode 3

Michael
_______________________________________________

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: cocoa bindings NSTableColumn to @allKeys?
      • From: Keary Suska <email@hidden>
  • Prev by Date: Re: CoreFoundation/IOKit with cocoa
  • Next by Date: Re: How to limit number of CPU cores used by a Cocoa app
  • Previous by thread: Re: Custom ColorPicker class with name .DS_Store could not be loaded
  • Next by thread: Re: cocoa bindings NSTableColumn to @allKeys?
  • Index(es):
    • Date
    • Thread