Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Copying NSTextStorage



On Fri, May 30, 2008 at 11:13 AM, Gordon Apple <email@hidden> wrote:
>    Why NSTextStorage?  Because that is what Sketch uses, and I lifted as
> much code from there as I could, although I use my own Bezier text container
> when rendering it.  The floating NSTextView uses it directly.  I suppose I
> could change it to store NSMutableAttributedString and create the
> NSTextStorage on-the-fly when rendering (and for the floating edit view).

IIRC, NSTextStorage is actually just a front for a private subclass of
NSMutableAttributedString.  For all I know they could actually be the
same thing -- certainly wouldn't surprise me.

--Kyle Sluder
_______________________________________________

Cocoa-dev mailing list (email@hidden)

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/email@hidden

This email sent to email@hidden

References: 
 >Re: Copying NSTextStorage (From: Jens Alfke <email@hidden>)
 >Re: Copying NSTextStorage (From: Gordon Apple <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.