Re: Appending NSStrings to an NSTextView
Re: Appending NSStrings to an NSTextView
- Subject: Re: Appending NSStrings to an NSTextView
- From: David Rehring <email@hidden>
- Date: Mon, 31 Dec 2001 20:03:16 -0800
On 12/30/01 11:15 PM, David Rehring at email@hidden wrote:
>
I need to append an NSString to an NSTextView and there doesn't seem to be a
>
non-hackish way of doing it.
It turns out NSTextStorage does the job in a way that doesn't make me
squeamish...
NSTextStorage *textStorage;
TextStorage = [textView textStorage];
[textStorage beginEditing];
[textStorage appendAttributedString:somestring];
[textStorage endEditing];
Thanks to everyone who sent me suggestions.
Later,
--
David Rehring Psychos do not explode when light hits
Senior Software Engineer them, no matter how crazy they are...
Atimi Software, Inc.
www.atimi.com And totally insane guy!