Re: How to change focus ring color?
Re: How to change focus ring color?
- Subject: Re: How to change focus ring color?
- From: Benjamin Dobson <email@hidden>
- Date: Sun, 2 Aug 2009 11:55:35 +0100
- Resent-date: Sun, 2 Aug 2009 11:56:13 +0100
- Resent-from: Benjamin Dobson <email@hidden>
- Resent-message-id: <email@hidden>
- Resent-to: email@hidden
NSBezierPath's -setClip.
http://developer.apple.com/documentation/Cocoa/Reference/ApplicationKit/Classes/NSBezierPath_Class/Reference/Reference.html#/
/apple_ref/occ/instm/NSBezierPath/setClip
On 2 Aug 2009, at 11:46:27, Squ Aire wrote:
Nonetheless, can you (or someone else in here) tell us what guides
and documents we should read in order to be able to make our
entirely custom focus rings that draw outside the frame like the
default one does? It would be nice to know for future reference. Can
it be done entirely with Cocoa Graphics or is something lower level
needed?
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