Skip navigation.
 
mlSecond try: Setting text in NSTextView
FROM : Michael Fenske
DATE : Wed Jan 08 23:02:30 2003

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_removed>
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

Related mailsAuthorDate
mlSecond try: Setting text in NSTextView Michael Fenske Jan 8, 23:02
mlRe: Second try: Setting text in NSTextView Alex Rice Jan 9, 05:00
mlRe: Second try: Setting text in NSTextView Michael Fenske Jan 9, 18:47