Second try: Setting text in NSTextView
Second try: Setting text in NSTextView
- Subject: Second try: Setting text in NSTextView
- From: Michael Fenske <email@hidden>
- Date: Wed, 8 Jan 2003 23:02:30 +0100
Hmm, nobody can explain this:
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.
Just magic?
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.