I'm just starting to mess with bindings. I've started implementing a preference dialog, binding some NSColorWell's to the shared defaults controller. That's working perfectly. My values are encoded and saved correctly.
However, what's not working is canceling out of the dialog. If I cancel out, the values are still saved.
It seems like I should be binding the cancel button to the NSUserDefaultController's "revert," but of course if I do that, I can't bind it to to "performClose" (unless there's a way to bind a button to multiple actions that I'm not aware of).
What should I be binding the cancel button to both revert the changes and close the window. Obviously I could do it by writing an action method that does both, but it seems like should be possible in just IB.