FROM : Daniel Oberhoff
DATE : Thu Jan 10 23:53:57 2008
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
DATE : Thu Jan 10 23:53:57 2008
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
| Related mails | Author | Date |
|---|---|---|
| Daniel Oberhoff | Jan 10, 23:53 | |
| mmalc crawford | Jan 11, 00:04 | |
| Daniel Oberhoff | Jan 12, 03:01 |






Cocoa mail archive

