Keyboard focus ring is being drawn multiple times
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.