FROM : Mike Ferris
DATE : Thu Apr 07 16:41:12 2005
The closest thing out of the box is to listen for NSWindowDidUpdate and
look for changes to keyWindow and firstResponder of keyWindow
yourself...
As others mentioned, subclassing either views or windows could also be
done to add this sort of notification. But I usually find that just
watching for NSWindowDidUpdate and checking if the focus has changed is
easier.
Mike Ferris
DATE : Thu Apr 07 16:41:12 2005
The closest thing out of the box is to listen for NSWindowDidUpdate and
look for changes to keyWindow and firstResponder of keyWindow
yourself...
As others mentioned, subclassing either views or windows could also be
done to add this sort of notification. But I usually find that just
watching for NSWindowDidUpdate and checking if the focus has changed is
easier.
Mike Ferris






Cocoa mail archive

