Re: Changing selection color in NSTextView
Re: Changing selection color in NSTextView
- Subject: Re: Changing selection color in NSTextView
- From: hac <email@hidden>
- Date: Tue, 24 Apr 2007 17:38:52 -0400
I'm having trouble seeing what you want between your message and subject,
but to change the color of selected text:
[textView setTextColor:color
range:[textView selectedRange]];
and to change the selection at loading time:
- (void)windowDidLoad
{
[textView setSelectedRange:NSMakeRange(start,length)];
}
Does that help?
Hi All,
How can I change default selection of NSTextView ?.
Thanks In Advance,
Sheen
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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