Re: Style management in NSTextView
Re: Style management in NSTextView
- Subject: Re: Style management in NSTextView
- From: Daniel Todd Currie <email@hidden>
- Date: Fri, 28 May 2004 01:55:39 -0700
The methods you want are:
NSMutableAttributedString -setAttributes:range:
NSMutableAttributedString -appendAttributedString:
If you have any more questions just ask, but this should point you in
the right direction.
-- Daniel Currie
On 2004 May 27, at 21:27, Jean-Denis Muys wrote:
Hi,
There are two related, but different things I want to do in an
NSTextView. And I am getting lost in the complexity of the text
system.
The first is to programmatically change some text attributes to some
substring in the NSTextView, namely I want to make it bold, change its
size and color.
The second is to append (or insert) an NSMutableAttributedString to
the NSTextView, with all its attribute qualities, But the
appendString: method takes an NSString, and I could not find a similar
method which would take an NSAttributedString.
Any pointer would be helpful.
Thanks,
Jean-Denis
_______________________________________________
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.
_______________________________________________
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.