NSTextView Custom Insertion Point
NSTextView Custom Insertion Point
- Subject: NSTextView Custom Insertion Point
- From: Willie Alberty <email@hidden>
- Date: Thu, 22 Sep 2005 01:22:09 -0700
I'm working on an NSTextView subclass that draws a custom insertion
point cursor. I've got the insertion point drawing properly by
overriding -drawInsertionPointInRect:color:turnedOn:. If the TextView
is waiting for input or if I've moved the insertion point by using
the keyboard or mouse, the custom cursor works fine. However, after I
type a character, the normal 'thin line' cursor displays for one
blink then my custom cursor code starts drawing again.
I suspect there's a different method that is called immediately after
text layout that draws this initial insertion point but I can't find
it. Any suggestions?
--
Willie Alberty, Owner
Spenlen Media
email@hidden
http://www.spenlen.com/
_______________________________________________
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