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

Keyboard focus ring is being drawn multiple times


  • Subject: Keyboard focus ring is being drawn multiple times
  • From: Matt Gemmell <email@hidden>
  • Date: Sun, 26 Jan 2003 17:44:28 +0000

Hi folks,

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.

I had hoped that NSButton would take care of this side of things itself (it certainly takes care of drawing the focus ring in the first place, and of getting rid of it when the focus changes). Any suggestions as to how I can fix this?

Best,
-Matt

--
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.

  • Follow-Ups:
    • [more] Re: Keyboard focus ring is being drawn multiple times
      • From: Matt Gemmell <email@hidden>
  • Prev by Date: Re: SQL support
  • Next by Date: Re: cascading sheets and HIG
  • Previous by thread: TableView with summary: my solution
  • Next by thread: [more] Re: Keyboard focus ring is being drawn multiple times
  • Index(es):
    • Date
    • Thread