Re: NSTextView
Re: NSTextView
- Subject: Re: NSTextView
- From: Ondra Cada <email@hidden>
- Date: Sat, 25 Aug 2001 20:59:49 +0200
Johan,
>
>>>>> Johan Lindberg (JL) wrote at Sat, 25 Aug 2001 18:54:04 +0200:
JL> How do I put text, programatically, in a NSTextView? I've looked
JL> everywhere for a method to do this, but I haven't found any. I want
RTFM NSText.html, there are many methods there (replaceCharactersInRange...).
You know, the nice links near the top of page under "Inherits from" tend to
be quite worth checking if you did not found what you needed.
If you happen to use HelpViewer, try switching to some useable viewer (even
TextEdit would do, though just barely; OmniWeb or MTLibrarian are good
choices).
JL> to make a log window, and I need to be able to append strings to
JL> it....
You'll need something in lines "get range of the end of the current contents
/ replace this range with new text", so I'd advice to make a conveniency
method for that (perhaps even a NSText category).
---
Ondra Cada
OCSoftware: email@hidden
http://www.ocs.cz
private email@hidden
http://www.ocs.cz/oc
References: | |
| >NSTextView (From: Johan Lindberg <email@hidden>) |