Focus Ring around an NSTextView
Focus Ring around an NSTextView
- Subject: Focus Ring around an NSTextView
- From: Tom Gray <email@hidden>
- Date: Fri, 18 Oct 2002 10:55:08 -0400
I have two instances of a custom subclass of an NSTextView in a window.
I am looking for a method to visually indicate which of the two views
has key focus. I have played around with some methods which draw
borders within the views to indicate focus, but, those borders are
subsequently messed up by any scrolling, selecting or editing in the
view.
I need to learn how to either:
1. Clip my scrollable, selectable, editable rectangle in side my view
in such a way that the focus coloring is not affected.
or
2. Learn how to draw on the window containing the view so that I can
"draw" a focus ring around the entire NSTextView subclass.
A third idea is to place another, slightly larger view _under_ my
NSTextView and to fill that is such a way as to produce the illusion of
hilighting around the top NSTextView. My attempts to do that however,
have not worked out well.
As always, thanks for all the help. I wish I was contributing knowledge
rather then using the knowledge of others!
Tom Gray
-------------
email@hidden
or
email@hidden
_______________________________________________
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.