Drawing a focus ring around an NSScrollView? (drawing glitches)
Drawing a focus ring around an NSScrollView? (drawing glitches)
- Subject: Drawing a focus ring around an NSScrollView? (drawing glitches)
- From: Jim Correia <email@hidden>
- Date: Fri, 26 May 2006 10:19:47 -0400
I have a subclass of NSScrollView which I'd like to draw a keyboard
focus ring around when the documentView is first responder. (Just
like the NSTableView/NSScrollView combo.)
What I have works, but as soon as the instance of MyScrollView moves
in the window (say due to a live resize) their are trailing focus
ring splotches left on the window in the view's previous location.
I've tried overriding -setFrame: and friends to invalidate the focus
ring (via -setKeyboardFocusRingNeedsDisplayInRect:) but that doesn't
correct the problems?
Any ideas how the NSTableView/NSScrollView combination works? What do
I need to do to fix the problem? (I only need to target 10.4 and later.)
Thanks,
Jim
_______________________________________________
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