Focus ring annoyance
Focus ring annoyance
- Subject: Focus ring annoyance
- From: John Pannell <email@hidden>
- Date: Fri, 26 Aug 2005 09:31:28 -0600
Hi all-
I have an application that draws a focus ring around two different
views (a NSTextField and a custom NSView subclass), alternately as
the tab button is pressed. Or at least, it used to... this
functionality broke in Tiger. While is was a very subtle part of my
app, and no users have complained, I'd still like to get it fixed.
Has anyone else experienced a similar problem?
Details:
I draw the ring with the technique found in example code...
[NSGraphicsContext saveGraphicsState];
NSSetFocusRingStyle(NSFocusRingOnly);
NSRectFill(viewRect);
[NSGraphicsContext restoreGraphicsState];
[self setKeyboardFocusRingNeedsDisplayInRect:viewRect];
The view being "ringed" is a subview of a split view, so the code
appears in the drawRect method of the split view (the split view
would clip the focus ring if drawn otherwise) - viewRect is the frame
of the proper subview.
As mentioned, this worked in Panther just fine, but no longer works
in Tiger.
Thanks for any help you can provide!
John Pannell
Positive Spin Media
http://www.positivespinmedia.com
_______________________________________________
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