FROM : Kyle Sluder
DATE : Fri May 30 22:16:26 2008
On Fri, May 30, 2008 at 11:13 AM, Gordon Apple <<email_removed>> 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
DATE : Fri May 30 22:16:26 2008
On Fri, May 30, 2008 at 11:13 AM, Gordon Apple <<email_removed>> 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
| Related mails | Author | Date |
|---|---|---|
| Gordon Apple | May 29, 20:03 | |
| Jens Alfke | May 30, 06:53 | |
| Gordon Apple | May 30, 17:13 | |
| Kyle Sluder | May 30, 22:16 | |
| Gordon Apple | Jun 1, 01:49 | |
| Ross Carter | Jun 1, 17:59 | |
| Gordon Apple | Jun 3, 17:15 | |
| Kyle Sluder | Jun 3, 18:51 | |
| Ross Carter | Jun 3, 20:19 | |
| Kyle Sluder | Jun 3, 22:21 | |
| Alastair Houghton | Jun 4, 00:09 | |
| Sherm Pendley | Jun 4, 10:14 |






Cocoa mail archive

