• 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
Second try: Setting text in NSTextView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: Second try: Setting text in NSTextView
      • From: Alex Rice <email@hidden>
  • Prev by Date: Re: Question
  • Next by Date: Re: Newbie Objective-C question
  • Previous by thread: NSSmallSystemFontSize - does it exist?
  • Next by thread: Re: Second try: Setting text in NSTextView
  • Index(es):
    • Date
    • Thread