Re: cocoa-dev digest, Vol 2 #1467 - 15 msgs
Re: cocoa-dev digest, Vol 2 #1467 - 15 msgs
- Subject: Re: cocoa-dev digest, Vol 2 #1467 - 15 msgs
- From: Julien Guimont <email@hidden>
- Date: Fri, 1 Nov 2002 20:21:43 -0500
Hi,
Here is my zero text function:
- (IBAction) zero:(id)sender{
NSData* data;
NSRange range;
range = NSMakeRange(0, 0 );
data = [self RTFFromRange: range];
range = NSMakeRange(0, [[self string] length]);
[self replaceCharactersInRange:range withRTF:data];
}
I'm sure it can be cleaner but it works great.
I hope this help
Julien Guimont
Juggy Software
www.juggysoft.com
On Friday, November 1, 2002, at 08:08 PM,
email@hidden wrote:
>
>
Message: 1
>
Date: Fri, 1 Nov 2002 17:50:33 -0500
>
Subject: Emptying an NSTextView
>
From: Chris Giddings <email@hidden>
>
To: Cocoa Dev <email@hidden>
>
>
Hey Guys,
>
>
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.
>
>
Thanks guys.
>
>
Chris Giddings
>
President, Ripple Software, Ltd.
>
http://www.ripplesw.com/
>
email@hidden
>
>
--__--__--
_______________________________________________
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.