How to change IBeam caret shape in NSTextView.
How to change IBeam caret shape in NSTextView.
- Subject: How to change IBeam caret shape in NSTextView.
- From: 慧 松本 <email@hidden>
- Date: Wed, 31 Oct 2007 07:27:25 +0900
Hello!
When the background color is black, the IBeam caret is hard to be
recognized because its color is also black. As an solution, Keith
Blount proposed a workaround on 2005.
RE: Changing the IBeamCursor colour in an NSTextView
FROM : Keith Blount
DATE : Mon Feb 28 18:14:55 2005
Well, I've found a sort of workaround, though it's an
ugly hack. I'm setting the window's
setAcceptsMouseMovedEvents to YES and then doing this:
- (void)mouseMoved:(NSEvent *)theEvent
{
if ([NSCursor currentCursor] == [NSCursor
IBeamCursor])
[iBeamColor set];
}
It works fine on Panther. But on Leopard, the IBeam caret
intolerably flickers.
Does anybody know another workaround?
BTW, the IBeam caret of Termial.app is not the default IBeam caret
but an outlined one that is easy to be recognized and does not
flicker even on Leopard.
Satoshi
_______________________________________________
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