Re: appending a string to an NSTextView
Re: appending a string to an NSTextView
- Subject: Re: appending a string to an NSTextView
- From: "Michael Ash" <email@hidden>
- Date: Tue, 30 May 2006 12:01:35 -0400
On 5/30/06, Lon Giese <email@hidden> wrote:
This has worked for me... when all I want is the advance scrolling
capabilities of NSTextView but don't want to bother with
NSAttributedStrings
[[aTextView textStorage] appendAttributedString:[[[NSAttributedString
alloc] initWithString:@"ANY NSString you want"] autorelease]];
Or, for something pithier, [[[aTextView textStorage] mutableString]
appendString:@"Whatever"].
Mike
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden