GUI design question

I. Savant idiotsavant2005 at gmail.com
Wed Apr 18 08:54:03 PDT 2007


Lothar:

On 4/19/07, Lothar Scholz <llothar at web.de> wrote:
> So how to do this on Apple Systems?
>

  Definitely get rid of the apply button. :-)

  I recommend using KVO/KVC and Bindings (read the documentation for
details). This allows you to use NSUserDefaultsController to apply
preference changes immediately. It also allows you to use the
validation method -validateValue:forKeyPath:error: to take immediate
corrective action. See this doc for a good overview of the process:

http://developer.apple.com/documentation/Cocoa/Conceptual/CocoaBindings/Concepts/MessageFlow.html

  Without specific details about some of the settings and the nature
of their dependencies, that's about as detailed as anybody can get.

--
I.S.


More information about the MacOSX-dev mailing list