Cocoa NSVIew notification when the view gets the key focus? -


How can I get a notification if an NSView gets the main focus?

I hope like a method "windowDidBecomeKey" from NSDWindow but I'm either blind or nothing like NSView.

Important view, when there is one, is the first response, therefore, apply in your approach, and either Handle there or post a notification to listen for your controller.


Comments

Popular posts from this blog

paypal - How to know the URL referrer in PHP? -

oauth - Facebook OAuth2 Logout does not remove fb_ cookie -

wpf - Line breaks and indenting for the XAML of a saved FlowDocument? -