Getting changes in model (NSObjectController, bindings)
Getting changes in model (NSObjectController, bindings)
- Subject: Getting changes in model (NSObjectController, bindings)
- From: Christian Schneider <email@hidden>
- Date: Wed, 6 Apr 2005 16:21:21 +0200
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
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden