• 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 an old style Terminal Cursor
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Drawing an old style Terminal Cursor


  • Subject: Drawing an old style Terminal Cursor
  • From: Tom Gray <email@hidden>
  • Date: Tue, 23 Jul 2002 17:38:51 -0400

Anyone out there have any idea how I could go about drawing an old style
terminal cursor on top of an NSTextView?

I would like to be able to have a cursor I could move around on the
"Terminal" which the user could see and move. I would like the cursor to be
a rectangle that would overlay the text underneath it.

My thoughts are to invert the background and foreground of a rectangle
around each character on the screen.

Alternatively I could create another view on top of my NSTextView and draw a
graphic on that view. (Would the text from the bottom view be visible
through the cursor?)

Just looking for ideas.

--

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: Trapping keyboard characters
  • Next by Date: Invalidating Rects for redraw
  • Previous by thread: Trapping keyboard characters
  • Next by thread: Invalidating Rects for redraw
  • Index(es):
    • Date
    • Thread