Re: turning the focus ring off on 10.2
Re: turning the focus ring off on 10.2
- Subject: Re: turning the focus ring off on 10.2
- From: Edward Hillenbrand <email@hidden>
- Date: Fri, 19 Aug 2005 16:08:40 -0700
On Aug 9, 2005, at 10:11 AM, Edward Hillenbrand wrote:
I've made a subclass of NSButton and placed it on a transparent
window, I have swapped the content view of the window with my own
NSView subclass. When the application runs, there are white lines
drawn around two of the button edges, these are outside of the
buttons frame rect. I quickly figured out that the only thing that
would draw outside of my button's frame rect is a focus ring. On
10.3 and above I can use setFocusRingType: to turn off the focus
ring, after that everything draws correctly, there are no white
lines. However, the application I'm working on targets 10.2 and I
don't want to stop supporting 10.2 because of a single method.
Is there away to turn the focus ring off on 10.2?
The solution to this is surprisingly simple. The white lines are not
drawn on 10.2, regardless of the full keyboard access preference. So
there is simply no need to turn the focus ring off on 10.2. On 10.3
and above the white lines a drawn, but only when full keyboard access
is on. So sending the setFocusRingType: message only when the
system version is greater than or equal to 10.3 is all that is needed.
_______________________________________________
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