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

Focus ring annoyance


  • Subject: Focus ring annoyance
  • From: John Pannell <email@hidden>
  • Date: Fri, 26 Aug 2005 09:31:28 -0600

Hi all-

I have an application that draws a focus ring around two different views (a NSTextField and a custom NSView subclass), alternately as the tab button is pressed. Or at least, it used to... this functionality broke in Tiger. While is was a very subtle part of my app, and no users have complained, I'd still like to get it fixed. Has anyone else experienced a similar problem?

Details:

I draw the ring with the technique found in example code...

[NSGraphicsContext saveGraphicsState];
NSSetFocusRingStyle(NSFocusRingOnly);
NSRectFill(viewRect);
[NSGraphicsContext restoreGraphicsState];
[self setKeyboardFocusRingNeedsDisplayInRect:viewRect];

The view being "ringed" is a subview of a split view, so the code appears in the drawRect method of the split view (the split view would clip the focus ring if drawn otherwise) - viewRect is the frame of the proper subview.

As mentioned, this worked in Panther just fine, but no longer works in Tiger.

Thanks for any help you can provide!

John Pannell
Positive Spin Media
http://www.positivespinmedia.com

_______________________________________________
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


  • Follow-Ups:
    • Re: Focus ring annoyance
      • From: "Sean McBride" <email@hidden>
  • Prev by Date: NSFontCollectionApplicationOnlyMask
  • Next by Date: RE: Getting one sheet to open after another
  • Previous by thread: NSFontCollectionApplicationOnlyMask
  • Next by thread: Re: Focus ring annoyance
  • Index(es):
    • Date
    • Thread