• 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
[more] Re: Keyboard focus ring is being drawn multiple times
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[more] Re: Keyboard focus ring is being drawn multiple times


  • Subject: [more] Re: Keyboard focus ring is being drawn multiple times
  • From: Matt Gemmell <email@hidden>
  • Date: Sun, 26 Jan 2003 18:43:42 +0000

On Sunday, January 26, 2003, at 05:44 pm, Matt Gemmell wrote:

I have an NSButton subclass which doesn't implement -drawRect:, so that it inherits proper "highlighted" and Fdisabled" appearances and behaviour, and receives the keyboard focus. My button shows a menu when it is clicked (using [NSMenu +popUpContextMenu:...]). This all works fine.

The problem is that, every time the button is clicked, the keyboard focus ring seems to be drawn yet again, ending up with a thick, ugly blue "halo" around my button. I've tried using -setNeedsDisplay:YES in my -mouseUp: handler, but that doesn't help.

Oh, and by the way: I've tried using -setKeyboardFocusRingNeedsDisplayInRect:, but that doesn't help. My button is borderless and just shows an image, so the focus-ring is being drawn around the contours of the image's opaque areas.

Any thoughts?

--
Matt Gemmell
Scotland Software
http://www.scotlandsoftware.com/
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

References: 
 >Keyboard focus ring is being drawn multiple times (From: Matt Gemmell <email@hidden>)

  • Prev by Date: Re: cascading sheets and HIG
  • Next by Date: Newbie problem with protocol
  • Previous by thread: Keyboard focus ring is being drawn multiple times
  • Next by thread: Newbie problem with protocol
  • Index(es):
    • Date
    • Thread