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

Re: Second try: Setting text in NSTextView


  • Subject: Re: Second try: Setting text in NSTextView
  • From: Bill Bumgarner <email@hidden>
  • Date: Sat, 11 Jan 2003 20:29:24 -0500

On Thursday, Jan 9, 2003, at 01:01 US/Eastern, email@hidden wrote:
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.

NSTextStorage implements -setText: as a part of the AppKit's AppleScript support (apparently).

It simply isn't a publicly declared method. That it works at runtime is merely coincidental.

b.bum
_______________________________________________
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: Apple and Cocoa (why don't they eat their own dog food?)
  • Next by Date: Re: Interface Builder and Obj-C++ files
  • Previous by thread: Re: Second try: Setting text in NSTextView
  • Next by thread: Metal Texture Image Location
  • Index(es):
    • Date
    • Thread