On 29 May '08, at 11:03 AM, Gordon Apple wrote:
Apparently, NSTextStorage does not conform to NSCopying, even though its superclass (NSAttributedString) does. Has something changed recently withNSTextStorage that makes "copy" not work?
Is there a reason you need to use NSTextStorage instead of NSAttributedString? Generally the only place NSTextStorage is used is in the innards of NSTextViews.
I'm not sure what -copy would do with an NSTextStorage, since it inherits from NSMutableAttributedString, and copying an NSMutableAttributedString returns an NSAttributedString. In other words, copying mutable objects returns immutable ones. Have you tried using -mutableCopy instead?
—Jens
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]