RE: Emptying an NSTextView
RE: Emptying an NSTextView
- Subject: RE: Emptying an NSTextView
- From: "Jonathan E. Jackel" <email@hidden>
- Date: Fri, 1 Nov 2002 18:45:16 -0500
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@hidden
>
[mailto:email@hidden]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@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.