Checking if NSButton is key view
Checking if NSButton is key view
- Subject: Checking if NSButton is key view
- From: "Bobby B" <email@hidden>
- Date: Sat, 5 Aug 2006 15:13:36 -0400
Hello everyone,
I'm subclassing NSButton, and I'm trying to find out how to know if my
view is the "key view." Say I have 8 buttons on a screen, and you can
tab through them. I want my button subclass to be able to respond to
the fact that it is now "selected" as the keyView (by drawing itself
differently, as it's a graphical program), through the nextKeyView
chain.
I've looked through the documentation from NSButton all the way up to
NSObject, and the only thing I can seem to find is the -nextKeyView
and previousKeyView methods, but I can't seem to find something like
"-isKeyView:".
Almost like the FocusRing, but instead of drawing the focus ring, I
want to modify the button itself.
That leads me to believe I am tackling this problem the completely wrong way.
I've read the documentation on NSResponder, all the stuff on keyboard
input, View programming, etc. There has to be something that isn't
clicking.
I'd appreciate any hints or advice,
Thank you
Bobby B
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden