Copying Oddity
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.