• 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: How to change focus ring color?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to change focus ring color?


  • Subject: Re: How to change focus ring color?
  • From: Rob Keniger <email@hidden>
  • Date: Sun, 2 Aug 2009 17:06:32 +1000


On 02/08/2009, at 4:29 PM, Graham Cox wrote:

I may be wrong, but my understanding was that this sets up some sort of special mode in the graphics context that draws the focus ring as a special case. If you notice, the ring is not a simple solid colour but some kind of gradient. I also think that it doesn't matter what colour you set, it will be ignored and the focus ring drawn by the graphics system using the colour internally set (by the current theme effectively, but that can't be changed).

The short answer is - you cannot do what you are trying to do. If you must have a custom focus ring colour (why?) then you will have to draw it entirely yourself and avoid setting this special mode.


You are entirely correct, this has been my experience.

In general it's best to avoid drawing your own focus ring if at all possible, there's a fair bit of "magic" going on when you call NSSetFocusRingStyle(NSFocusRingOnly) because it draws outside the control's frame.

--
Rob Keniger



_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • RE: How to change focus ring color?
      • From: Squ Aire <email@hidden>
References: 
 >Re: How to change focus ring color? (From: Alexander Bokovikov <email@hidden>)
 >Re: How to change focus ring color? (From: Graham Cox <email@hidden>)

  • Prev by Date: Re: How to change focus ring color?
  • Next by Date: Re: IPhone Textview question
  • Previous by thread: Re: How to change focus ring color?
  • Next by thread: RE: How to change focus ring color?
  • Index(es):
    • Date
    • Thread