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 that

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
probably just making it so. Many thanks and all the best, Keith --- On Sat, 10/3/09, Aki Inoue a...@apple.com wrote: From: Aki Inoue a...@apple.com Subject: Re: NSLayoutManager and best override point for temporary attributes To: Keith Blount keithblo...@yahoo.com Cc: Martin Wierschin mar

Re: NSLayoutManager and best override point for temporary attributes

2009-10-03 Thread Keith Blount
attributes.) Many thanks again and all the best, Keith --- On Fri, 10/2/09, Aki Inoue a...@apple.com wrote: From: Aki Inoue a...@apple.com Subject: Re: NSLayoutManager and best override point for temporary attributes To: Keith Blount keithblo...@yahoo.com Cc: Martin Wierschin mar

Re: NSLayoutManager and best override point for temporary attributes

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

Re: NSLayoutManager and best override point for temporary attributes

2009-10-02 Thread Keith Blount
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 mar...@nisus.com wrote: From: Martin Wierschin mar...@nisus.com Subject: Re: NSLayoutManager and best override point

Re: NSLayoutManager and best override point for temporary attributes

2009-10-02 Thread Aki Inoue
- edited:range:changeInLength: gets called? Many thanks again! All the best, Keith --- On Thu, 10/1/09, Martin Wierschin mar...@nisus.com wrote: From: Martin Wierschin mar...@nisus.com Subject: Re: NSLayoutManager and best override point for temporary attributes To: Keith Blount keithblo

Re: NSLayoutManager and best override point for temporary attributes

2009-10-02 Thread Keith Blount
, Aki Inoue a...@apple.com wrote: From: Aki Inoue a...@apple.com Subject: Re: NSLayoutManager and best override point for temporary attributes To: Keith Blount keithblo...@yahoo.com Cc: Martin Wierschin mar...@nisus.com, cocoa-dev@lists.apple.com Date: Friday, October 2, 2009, 10:24 PM Keith

Re: NSLayoutManager and best override point for temporary attributes

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

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

NSLayoutManager and best override point for temporary attributes

2009-09-29 Thread Keith Blount
Hello, I have certain custom text attributes that are used in my NSTextStorage to which I would like to add temporary attributes via the NSLayoutManager. For example, say I have a custom NoteColor text attribute associated with an NSColor object ([text addAttribute:@NoteColor value:[NSColor