Setting text in NSTextView
Setting text in NSTextView
- Subject: Setting text in NSTextView
- From: Michael Fenske <email@hidden>
- Date: Sun, 5 Jan 2003 23:13:21 +0100
Ok, I set text in a NSTextView this way:
[textView setString:@"new text"];
No problem. But can someone explain me, why this
[[textView textStorage] setText:@"new text"];
works, too? I get a waring if I compile that (as I expected) but it
really works. So, I'm curious to know why.
Michael
_______________________________________________
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.