FROM : Christian Schneider
DATE : Wed Apr 06 16:21:21 2005
Hi all,
this is probably a very stupid and simple question but I can't figure it out.
I have a controller object that has the methods -clip and -setClip: to
access an instance variable. I bind to an NSObjectController
([clipController bind:@"contentObject" toObject:self
withKeyPath:@"clip" options:nil];) and further connect some interface
elements to the object controller.
I can change the model object in the UI without any problems and the
changes are reflected in all the places they should be.
But what I really want to know is, how can my controller (the class
with -clip and -setClip:) be notified that its object has changed? Do
I have to bind to its various changeable instance variables via KVO?
The thing is, I am not particularly interested in which part of the
model changed as it will be saved to a data base as a whole, so such a
detailled binding would be overkill in this case.
I know I still have a lot about bindings to know and appreciate any help.
Thanks,
chris
DATE : Wed Apr 06 16:21:21 2005
Hi all,
this is probably a very stupid and simple question but I can't figure it out.
I have a controller object that has the methods -clip and -setClip: to
access an instance variable. I bind to an NSObjectController
([clipController bind:@"contentObject" toObject:self
withKeyPath:@"clip" options:nil];) and further connect some interface
elements to the object controller.
I can change the model object in the UI without any problems and the
changes are reflected in all the places they should be.
But what I really want to know is, how can my controller (the class
with -clip and -setClip:) be notified that its object has changed? Do
I have to bind to its various changeable instance variables via KVO?
The thing is, I am not particularly interested in which part of the
model changed as it will be saved to a data base as a whole, so such a
detailled binding would be overkill in this case.
I know I still have a lot about bindings to know and appreciate any help.
Thanks,
chris
| Related mails | Author | Date |
|---|---|---|
| Christian Schneide… | Apr 6, 16:21 | |
| Jonathon Mah | Apr 6, 17:02 | |
| Christian Schneide… | Apr 7, 09:30 |






Cocoa mail archive

