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 (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

Reply via email to