Re: Focus Rings
Re: Focus Rings
- Subject: Re: Focus Rings
- From: Aleksandr Skobelev <email@hidden>
- Date: Tue, 24 Oct 2006 18:02:51 +0400
On Oct 24, 2006, at 16:46 , Jim Correia wrote:
On Oct 24, 2006, at 7:44 AM, Aleksandr Skobelev wrote:
Couldn't you please elaborate on how to make an irregular shaped
path basing on arbitrary image with transparency? I believe it
could save my poor soul. :)
http://developer.apple.com/documentation/Cocoa/Reference/
ApplicationKit/Miscellaneous/AppKit_Functions/Reference/
reference.html#//apple_ref/c/func/NSSetFocusRingStyle
Thanks a lot!
It seems that the following tricky sequence does the right thing:
[NSGraphicsContext saveGraphicsState];
NSSetFocusRingStyle(NSFocusRingAbove);
NSPoint p = cellFrame.origin;
if ([cellFrame isflipped]) p.y += NSHeight(cellFrame);
[img compositeToPoint: p
operation: NSCompositeSourceOver];
[NSGraphicsContext restoreGraphicsState];
Thanks to all,
Aleksandr Skobelev
_______________________________________________
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