Re: Viewing a single NSTextStorage with two sets of attributes

2010-09-13 Thread Aki Inoue
Andrew, I usually recommend subclassing NSTextStorage returning different attributes based on a property/flag. The tricky part is (as you might already encountered) to make sure setting up the property at the right moment. In normal operations, the Text System queries the attributes roughly in

Viewing a single NSTextStorage with two sets of attributes

2010-09-13 Thread Andrew Hughes
Hello all, I'm trying to figure out the cleanest method for viewing one NSTextStorage with multiple attributes (mostly font and paragraph attributes). Basically I am developing a text editor program and I would like to have two different views on the same text, one in a non- paginated mode