Re: Inspector of NSArrayController doesn't update NSTable immediately
Re: Inspector of NSArrayController doesn't update NSTable immediately
- Subject: Re: Inspector of NSArrayController doesn't update NSTable immediately
- From: Jonathan Wight <email@hidden>
- Date: Sat, 25 Oct 2003 20:41:15 -0500
>
On Oct 25, 2003, at 5:12 PM, Jonathan Wight wrote:
>
>
> I have an NSTable populated by a NSArrayController (that feeds off a
>
> NSMutableArray in my document object using the NSKeyValueCoding
>
> methods). I
>
> also have a inspector panel that 'inspects' the selection of the table
>
> (just
>
> like the examples in the WWDC sessions).
>
> I can edit the values in the table and the inspector is immediately
>
> updated
>
> with the changes.
>
> However when I edit the values in the inspector the values in the
>
> table are
>
> not updated until I click on the row in question.
>
> What did I break?
>
>
>
What are your bindings...?
>
>
mmalc
I'm binding the values of the UI elements in the inspector to the
NSArrayController.selection.{column name}
I'm binding the values of the table columns to
NSArrayController.arrangedObjects.{column name}
The contentArray of NSArrayController is bound to the nib's owner's
'waypoints' (an accessor method) attribute.
Jon.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.