• 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: How to change focus ring color?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Re: How to change focus ring color? (From: Alexander Bokovikov <email@hidden>)
 >Re: How to change focus ring color? (From: Graham Cox <email@hidden>)
 >Re: How to change focus ring color? (From: Rob Keniger <email@hidden>)
 >RE: How to change focus ring color? (From: Squ Aire <email@hidden>)

  • Prev by Date: Re: NSURLConnection performance on iPhone
  • Next by Date: Re: incorrect checksum for freed object
  • Previous by thread: RE: How to change focus ring color?
  • Next by thread: Re: IPhone Textview question
  • Index(es):
    • Date
    • Thread