Detecting Changes in NSObjectController
Detecting Changes in NSObjectController
- Subject: Detecting Changes in NSObjectController
- From: J Nozzi <email@hidden>
- Date: Wed, 21 Jul 2004 19:52:45 -0400
Hello, List:
I'm trying to track changes to a "project settings"
NSMutableDictionary that is the contents of an NSObjectController in
order to send updateChangeCount: to my NSDocument subclass. Why? I'm
not exactly sure - it seemed the right thing to do at the time. ;-)
I bound an NSButton's (checkbox) value to the NSObjectController's
selection.myButtonStateKey ..... and it works. I can save and restore
this object's state just as expected. Unfortunately, I cannot seem to
figure out how to get it to respond to updateChangeCount. It's not
getting called.
The docs say of <NSEditor> protocol, "NSController provides an
implementation of this protocol, as do the Application Kit user
interface elements that support binding."
Well ... NSButton supports binding ... ;-)
What am I missing? Is there an easier way to catch changes to the
content object?
- J
_______________________________________________
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.