• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: turning the focus ring off on 10.2
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >turning the focus ring off on 10.2 (From: Edward Hillenbrand <email@hidden>)

  • Prev by Date: Re: Reporting errors from key-value-coding accessors
  • Next by Date: Re: Reporting errors from key-value-coding accessors
  • Previous by thread: turning the focus ring off on 10.2
  • Next by thread: Double click binding for NSTextView
  • Index(es):
    • Date
    • Thread