• 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: Focus Rings
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Focus Rings (From: Seth Willits <email@hidden>)
 >Re: Focus Rings (From: "Sean McBride" <email@hidden>)
 >Re: Focus Rings (From: Scott Anguish <email@hidden>)
 >Re: Focus Rings (From: Seth Willits <email@hidden>)
 >Re: Focus Rings (From: Scott Anguish <email@hidden>)
 >Re: Focus Rings (From: Seth Willits <email@hidden>)
 >Re: Focus Rings (From: Aleksandr Skobelev <email@hidden>)
 >Re: Focus Rings (From: Ricky Sharp <email@hidden>)
 >Re: Focus Rings (From: Aleksandr Skobelev <email@hidden>)
 >Re: Focus Rings (From: Jim Correia <email@hidden>)

  • Prev by Date: Re: Focus Rings
  • Next by Date: Re: Over-released Paragraph Style - Driving Me NUTS!
  • Previous by thread: Re: Focus Rings
  • Next by thread: FSCopyAsync Example + Updating UI
  • Index(es):
    • Date
    • Thread