Changing Insertion Point Size?
Changing Insertion Point Size?
- Subject: Changing Insertion Point Size?
- From: Gerald Daniels <email@hidden>
- Date: Wed, 05 Jun 2002 19:19:02 -0500
How do you change the size of the insertion point in an NSTextView? I would
like to change it into a block cursor, like you can have in Terminal.app.
Here is a snippet of my code, but when I run this the insertion point never
displays:
[textView lockFocus];
[textView drawInsertionPointInRect:NSMakeRect(0.0, 0.0, 5.0, 10.0)
color:[NSColor whiteColor]
turnedOn:YES];
[textView unlockFocus];
The textView object is a IBOutlet NSTextView which points to a NSTextView in
my .nib file.
When I just do this:
[textView setInsertionPointColor:[NSColor whiteColor]];
A regular insertion point is displayed.
Thanks.
--
Gerald W. Daniels II
Home:
mailto: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.