• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: cocoa-dev digest, Vol 2 #1467 - 15 msgs
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Prev by Date: Re: Indexing text, pdf, .doc
  • Next by Date: Re: Cocoa really needs to be thread-safe
  • Previous by thread: Bi-directional Text
  • Next by thread: NSTextField keypress question
  • Index(es):
    • Date
    • Thread