Skip navigation.
 
mlRE: Emptying an NSTextView
FROM : Jonathan E. Jackel
DATE : Sat Nov 02 00:45:16 2002

This works, but it applies the formatting attributes of the old first
character to the new contents.  Might or might not be the right solution.
Setting the attributed string of the text storage gives you more control
(e.g., return the text attributes to "normal"), but it's a little more work.

Jonathan

> -----Original Message-----
> From: <email_removed>
> [mailto:<email_removed>]On Behalf Of j o a r
> Sent: Friday, November 01, 2002 6:16 PM
> To: Chris Giddings
> Cc: Cocoa Dev
> Subject: Re: Emptying an NSTextView
>
>
> Don't forget the superclasses! "setString:" is defined in NSText...
>
> j o a r
>
> On Friday, Nov 1, 2002, at 23:50 Europe/Stockholm, Chris Giddings wrote:
>
> >     I've been messing around a bit attempting to empty an NSTextView in
> > order to provide my users with a fresh start.  Unfortunately
> > setStringValue does not work with this, and though setTextValue seems
> > to be fine by the builder, it also isn't recognized at the time it
> > needs to be invoked.  I was hoping that someone may have a simple
> > answer to this problem which seems to be eluding me.
> _______________________________________________
> cocoa-dev mailing list | <email_removed>
> 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_removed>
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

Related mailsAuthorDate
mlEmptying an NSTextView Chris Giddings Nov 1, 23:50
mlRe: Emptying an NSTextView j o a r Nov 2, 00:15
mlRE: Emptying an NSTextView Jonathan E. Jackel Nov 2, 00:39
mlRE: Emptying an NSTextView Jonathan E. Jackel Nov 2, 00:45