• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Setting text in NSTextView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Prev by Date: Re: Quickly drawing non-antialiased, discrete, pixels
  • Next by Date: Re: Quickly drawing non-antialiased, discrete, pixels
  • Previous by thread: Re: Loading a Text File into an NSTextView
  • Next by thread: folder layout modification
  • Index(es):
    • Date
    • Thread