Re: cocoa bindings NSTableColumn to @allKeys?
Re: cocoa bindings NSTableColumn to @allKeys?
- Subject: Re: cocoa bindings NSTableColumn to @allKeys?
- From: "Michael Hanna" <email@hidden>
- Date: Sun, 30 Dec 2007 18:12:19 -0800
Thanks for the suggestion. I seem to be one step closer, but it's not
quite there..
I created a new NSArrayController in IB called Flickr Photo Lists:
NSArrayController
bind > Flickr Users
controller key > selection
model key path > photoLists.@allKeys
then I set the class to YKKFlickrPhotoLists.
NSTableColumn
bind > Flickr Photo Lists
controller key > arrangedObjects
model key path > ???
do I need to enter a model key path? after all -allKeys returns
NSStrings doesn't it? I can't leave the field empty and I consistently
get the runtime error:
[<NSCFString 0xc2d0> addObserver:<NSTableBinder 0x1502c0>
forKeyPath:@"properties.username" options:0x0 context:0x0] was sent to
an object that is not KVC-compliant for the "properties" property.
[<NSCFString 0xc2d0> valueForUndefinedKey:]: this class is not key
value coding-compliant for the key properties.
I just threw properties.username in there cause I had to put something ..
Michael
On Dec 30, 2007 9:16 AM, Keary Suska <email@hidden> wrote:
> on 12/30/07 12:00 AM, email@hidden purportedly said:
>
> > 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?
>
> You are being told that there are multiple values for a single binding. What
> you are doing is binding every row of a table column to the same multiple
> value (@allKeys). I doubt this is what you want.
>
> You want to bind the value to an array controller that is bound using the
> above options.
>
> 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
>
_______________________________________________
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