Re-Initializing (clearing) a NSTextView object
Re-Initializing (clearing) a NSTextView object
- Subject: Re-Initializing (clearing) a NSTextView object
- From: "Frederick C. Lee" <email@hidden>
- Date: Fri, 11 Jun 2004 16:13:01 -0700
Simple question:
How do I clear a NSTextView object?
Do I:
a) Do a replace characters within the range of the NSTextView object as
in:
[[self notesView] replaceCharactersInRange:NSMakeRange(0, [[[self
notesView] string] length])....with NIL or blank chars.
or
b) set its respective NSTextStorage to nil?
I'm sure there must be a very simple method of clearing (resetting) the
view; but I'm not sure what's the correct way of doing it.
Thanks in advance.
Regards,
Ric.
_______________________________________________
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.