Re: empty string, or: totally clearing the NSTextStorage
Re: empty string, or: totally clearing the NSTextStorage
- Subject: Re: empty string, or: totally clearing the NSTextStorage
- From: Douglas Davidson <email@hidden>
- Date: Wed, 16 Oct 2002 18:13:08 -0700
On Wednesday, October 16, 2002, at 02:32 PM, Arthur Clemens wrote:
I have a peculiar problem: I want to clear my textStorage, but I don't
succeed in clearing it totally - there remains
an empty newline, using this code:
(in my textView)
unsigned length = [[self textStorage] length];
[[self textStorage] replaceCharactersInRange:NSMakeRange(0, length-1)
withString:@""];
Er...why length-1?
Douglas Davidson
_______________________________________________
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.