Re: Displaying one NSTextStorage with two sets of temporary attributes

2008-05-06 Thread Martin Wierschin
I think any way you do this things are going to get messy. However, in terms of simplicity using break characters to split one NSTextStorage between containers might be the easiest. Yes, you'd have to filter incoming content to be sure that "real" break characters don't pollute your content

Re: Displaying one NSTextStorage with two sets of temporary attributes

2008-05-02 Thread Adam C.M. Solove
First, Ross, thank you for your comments. I was going about this somewhat wrong and you took the time to think it through. I think you are right that it would be easiest to separate the different note series into their own TextStorage. Then I could add custom attributes to each text that determine

Re: Displaying one NSTextStorage with two sets of temporary attributes

2008-05-02 Thread Ross Carter
Hi Adam, I guess that the approach you will take depends on how the textStorage string is set up. Sorry, I don't know anything about TEI, so I can only offer general comments. If the textStorage series are sequential and the number and sequence of series are known in advance, and the text

Re: Displaying one NSTextStorage with two sets of temporary attributes

2008-05-02 Thread Adam C.M. Solove
Actually, you're right that merely suppressing display is all I need. I was assuming this would have to be done with temporary attributes, but is there an easier way? THank you, Adam Solove On Fri, May 2, 2008 at 7:57 AM, Ross Carter <[EMAIL PROTECTED]> wrote: > I'm not sure whether you need to

Re: Displaying one NSTextStorage with two sets of temporary attributes

2008-05-02 Thread Ross Carter
I'm not sure whether you need to change a particular set of attributes (font, line spacing, tabs, etc) in each layout manager or merely suppress the display of text in other series. If the former, I would think that the layout manager is not best place to handle the attribute fixing. I'd th

Displaying one NSTextStorage with two sets of temporary attributes

2008-05-01 Thread Adam C.M. Solove
Hello all, In the episode of Late Night Cocoa on the text system, [ http://www.macdevnet.com/index.php/shows/latenightcocoa/37-latenightcocoa/93-lnc005 ] Juan Pablo Claude described a setup with multiple NSLayoutManagers editing text from the same NSTextStorage and then said, off-hand, that you mi