Thanks! You guys are the best! I expect this to work great: I'll try it
out this weekend.
I have come to the conclusion that the best way to enable keyboard
control is to make each control knob a separate NSView so the user will
tab from knob to knob. Does that sound right, and does anyone
.
Anyway, when a knob is selected with the mouse or by tabbing to it, I'd
like the active knob to have a nice, fuzzy focus ring, just like a
normal Aqua control. And it should appear blue or graphite color
according to the user's preference setting.
Considering that the knob will probably
On 2010 Jan 28, at 10:51, Charles Jenkins wrote:
I'd like the active knob to have a nice, fuzzy focus ring, just like a normal
Aqua control. And it should appear blue or graphite color according to the
user's preference setting.
So, just to be clear, you don't want a Fuzzy Focus Ring. You
Le 28 janv. 2010 à 19:51, Charles Jenkins a écrit :
Considering that the knob will probably be oddly shaped, how do I get the
system to draw the focus ring? Is the system focus ring something you can
just add to any graphic?
No, but maybe you can back the drawing of your control by a small
Oh, it looks like you can eliminated most of the code below if you're
targetting Mac OS 10.5+.
#import Cocoa/Cocoa.h
@interface NSView (FocusRing)
Ah -- a quick side note on this code sample. Adding a category to NSView with
generic names (like drawFocusRing) is quite dangerous. The