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
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
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: &
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
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
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
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
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
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
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
10 matches
Mail list logo