Re: Copying NSTextStorage
Re: Copying NSTextStorage
- Subject: Re: Copying NSTextStorage
- From: "Kyle Sluder" <email@hidden>
- Date: Fri, 30 May 2008 16:16:26 -0400
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:
This email sent to email@hidden