two way bindings?
two way bindings?
- Subject: two way bindings?
- From: Daniel Oberhoff <email@hidden>
- Date: Thu, 10 Jan 2008 23:53:57 +0100
Hi,
Help! I can't properly get bindings from a custom view to work...
I have a custom audio sample view with a selection and a cursor. I
bind these to keys in the selected object of an array controller. A
table view is also connected to this array controller displaying all
the entries. Now when I add entries to the table they get commited to
the array controller and also the audio view updates when I change the
values, but when I change the selection or the cursor in the view with
the mouse, this does not get commited to the currently selected row in
the table as it should. In turn if I use an NSSlider instead of my
view communication works both ways, as expected. Now the relevant keys
of the sample notify changes manually with willChange and didChange.
Also mltiple changes are nested properly and I also properly overload
automaticallyNotifiesObserversForKey (as documented anyway). Are there
any further pitfalls I need to be aware of?
Best
Daniel
_______________________________________________
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