On 02/08/2009, at 7:05 AM, Alexander Bokovikov wrote:
NSSetFocusRingStyle(NSFocusRingOnly);
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.
--Graham _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com