RE: NSTextView custom cursor
RE: NSTextView custom cursor
- Subject: RE: NSTextView custom cursor
- From: Martin Wierschin <email@hidden>
- Date: Fri, 21 Dec 2007 19:35:09 -0800
I'm replying to an old post for the sake of the list archives:
Although I have never tried it myself, I believe the method you
would need to override is NSTextView's:
-drawInsertionPointInRect:color:turnedOn:
...
However, it only had any effect while the cursor was still and
blinking - during typing, the insertion point was still a thin
line, so I'm guessing that it must also be drawn elsewhere.
I needed to do the same and also found that overriding that one
method was insufficient. It turns out you've also got to override the
private method:
- (void) _drawInsertionPointInRect:(NSRect)rect color:(NSColor*)color
It's frustrating that a public override point is declared and then
simply not used half the time. I'll file a radar.
~Martin
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden