cocoa bindings NSTableColumn to @allKeys?
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