Re: NSLayoutManager and best override point for temporary attributes

2009-10-07 Thread Keith Blount
Hi Ross, Many thanks for the suggestion. >> I tried saving the edited range of text in the text storage and then >> having my layout manager check this from: >> >> -textStorage:edited:range:changeInLength:invalidatedRange: >> >> Then my layout manager adds temp attribs in this method. Turns out

Re: NSLayoutManager and best override point for temporary attributes

2009-10-06 Thread Ross Carter
On Oct 5, 2009, at 3:12 PM, Keith Blount wrote: I tried saving the edited range of text in the text storage and then having my layout manager check this from: -textStorage:edited:range:changeInLength:invalidatedRange: Then my layout manager adds temp attribs in this method. Turns out that

Re: NSLayoutManager and best override point for temporary attributes

2009-10-05 Thread Keith Blount
ficult than it should be... But I'm probably just making it so. Many thanks and all the best, Keith --- On Sat, 10/3/09, Aki Inoue wrote: > From: Aki Inoue > Subject: Re: NSLayoutManager and best override point for temporary attributes > To: "Keith Blount" > Cc: &

Re: NSLayoutManager and best override point for temporary attributes

2009-10-03 Thread Keith Blount
ld be fine. (Although I'm not sure how I would use this > method if I wanted, say, the underline to be a different > colour from the text, which I need for certain link > attributes.) > > > > Many thanks again and all the best, > > Keith > > > > --- On Fr

Re: NSLayoutManager and best override point for temporary attributes

2009-10-02 Thread Aki Inoue
From: Aki Inoue Subject: Re: NSLayoutManager and best override point for temporary attributes To: "Keith Blount" Cc: "Martin Wierschin" , cocoa-dev@lists.apple.com Date: Friday, October 2, 2009, 10:24 PM Keith, If your custom attributes modifies just the graphics stat

Re: NSLayoutManager and best override point for temporary attributes

2009-10-02 Thread Keith Blount
th --- On Fri, 10/2/09, Aki Inoue wrote: > From: Aki Inoue > Subject: Re: NSLayoutManager and best override point for temporary attributes > To: "Keith Blount" > Cc: "Martin Wierschin" , cocoa-dev@lists.apple.com > Date: Friday, October 2, 2009, 10:24 PM &g

Re: NSLayoutManager and best override point for temporary attributes

2009-10-02 Thread Aki Inoue
ute if necessary, after - edited:range:changeInLength: gets called? Many thanks again! All the best, Keith --- On Thu, 10/1/09, Martin Wierschin wrote: From: Martin Wierschin Subject: Re: NSLayoutManager and best override point for temporary attributes To: "Keith Blount" Cc: cocoa-d

Re: NSLayoutManager and best override point for temporary attributes

2009-10-02 Thread Keith Blount
ut managers to ask them to add the temporary attribute if necessary, after -edited:range:changeInLength: gets called? Many thanks again! All the best, Keith --- On Thu, 10/1/09, Martin Wierschin wrote: > From: Martin Wierschin > Subject: Re: NSLayoutManager and best override point for t

Re: NSLayoutManager and best override point for temporary attributes

2009-10-02 Thread Keith Blount
sesTemporaryAttributeName:(NSString *)name forAttributeName:(NSString *)name options:(NSDictionary *)opt; Oh well! Thanks again and all the best, Keith --- On Thu, 10/1/09, Martin Wierschin wrote: > From: Martin Wierschin > Subject: Re: NSLayoutManager and best override point for temporary

Re: NSLayoutManager and best override point for temporary attributes

2009-09-30 Thread Martin Wierschin
Hi Keith, I have certain custom text attributes that are used in my NSTextStorage to which I would like to add temporary attributes via the NSLayoutManager. What version of OSX are you testing under? Under Leopard there's a bug in -[NSLayoutManager temporaryAttribute:atCharacterIndex:lo