• 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
Focus Ring around an NSTextView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Prev by Date: Re: Table View and Tool Tips
  • Next by Date: app terminate and window closing
  • Previous by thread: Re: Bridging (was Re: A CFStringRef that throws EXC_BAD_ACCESS)
  • Next by thread: app terminate and window closing
  • Index(es):
    • Date
    • Thread