• 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
Copying Oddity
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Copying Oddity


  • Subject: Copying Oddity
  • From: The Amazing Llama <email@hidden>
  • Date: Fri, 11 Jul 2003 09:03:27 -0700

I just noticed that
-[NSTextStorage copy]
will provide you with an NSConcreteAttributedString, and not an NSTextStorage at all.

This makes a certain amount of sense, because NSTextStorage does not conform to NSCopying, where it's superclass NSAttributedString does, but it was still a little odd to see.

So I suppose since the superclass implements -copy, the subclass must, but to just pass the message on is a little odd.

Is this expected behavior? Or should it return nil or something?

Seth A. Roby The Amazing Llama < mail or AIM me at tallama at mac dot com>
"Life is like an exploded clown. It's really funny until you figure out what just happened."
_______________________________________________
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: Copying Oddity
      • From: Douglas Davidson <email@hidden>
  • Prev by Date: Install two Mac OSX on one computer
  • Next by Date: Re: Install two Mac OSX on one computer
  • Previous by thread: RE: Install two Mac OSX on one computer
  • Next by thread: Re: Copying Oddity
  • Index(es):
    • Date
    • Thread