Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

cocoa bindings NSTableColumn to @allKeys?



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:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.