Re: writing to a textview
Re: writing to a textview
- Subject: Re: writing to a textview
- From: Marten van Gelderen <email@hidden>
- Date: Thu, 20 Nov 2003 19:35:07 +0100
Hallo,
Use: [myTextView setString: @"Bla bla"]; (that is Cocoa style).
If you want to append to the myTextView, write a category on NSTextView
as explained in Garfinkel & Mahony: Building Cocoa Apps O'Reilly (ISBN
0-596-00235-1) page 341.
On 20 Nov 2003, at 4:19 AM, Highlander872 wrote:
dumb question here.
I know you can use field.setStringValue("blah blah blah");
to set hte value of an NSTextField
but wut is the equivalent for NSTextView?
I tried setStringValue but got a build error so im guessin thats wrong
"The very powerful and the very stupid have one thing in common. They
don't alter their views to fit the facts, they alter the facts to fit
their views. Which can be quite uncomfortable if you happen to be one
of the facts that needs altering."
_______________________________________________
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.
--
Groeten, Marten
_______________________________________________
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.