FROM : Dustin Voss
DATE : Thu Apr 07 02:22:53 2005
On 6 Apr, 2005, at 11:57 AM, Luc Vandal wrote:
> Hi!
>
> is there any event/notification for when a control gains focus? I did
> search in the documentation and they mention that you can get notified
> when your control has focus but I can't seem to find any code to do it
> (I know how to register for a notification, but I don't know which
> class has that notification nor the notification name)!
I wrote a sub-class of NSWindow that posts a notification or calls the
delegate when the first responder changes. You can get it from
<http://homepage.mac.com/d.j.v./FileSharing13.html>.
> Also, is there some quick reference people use to quickly find stuff
> like that? I dunno if it's my PC dev background but I always have a
> hard time to find out about pretty much anything in the documentation
> for Cocoa. :)
I check cocoadev.com first thing, then the mailing list archives, then
the #macdev IRC channel on freenode.net.
DATE : Thu Apr 07 02:22:53 2005
On 6 Apr, 2005, at 11:57 AM, Luc Vandal wrote:
> Hi!
>
> is there any event/notification for when a control gains focus? I did
> search in the documentation and they mention that you can get notified
> when your control has focus but I can't seem to find any code to do it
> (I know how to register for a notification, but I don't know which
> class has that notification nor the notification name)!
I wrote a sub-class of NSWindow that posts a notification or calls the
delegate when the first responder changes. You can get it from
<http://homepage.mac.com/d.j.v./FileSharing13.html>.
> Also, is there some quick reference people use to quickly find stuff
> like that? I dunno if it's my PC dev background but I always have a
> hard time to find out about pretty much anything in the documentation
> for Cocoa. :)
I check cocoadev.com first thing, then the mailing list archives, then
the #macdev IRC channel on freenode.net.






Cocoa mail archive

