• 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
Drawing a focus ring around an NSScrollView? (drawing glitches)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: Re : Newbie Q : Not-so-simple encoding&decoding example
  • Next by Date: Re: Capturing audio from input and saving
  • Previous by thread: Re : Newbie Q : Not-so-simple encoding&decoding example
  • Next by thread: problem with NSBrowser
  • Index(es):
    • Date
    • Thread