Open Menu
Close Menu
Apple
Shopping Bag
Apple
Mac
iPad
iPhone
Watch
TV
Music
Support
Search apple.com
Shopping Bag
Lists
Open Menu
Close Menu
Terms and Conditions
Lists hosted on this site
Email the Postmaster
Tips for posting to public mailing lists
NSLinkAttributeName and re-layout
[
Date Prev
][
Date Next
][
Thread Prev
][
Thread Next
][
Date Index
][
Thread Index
]
NSLinkAttributeName and re-layout
Subject
:
NSLinkAttributeName and re-layout
From: Kelvin Delbarre <
email@hidden
>
Date: Wed, 11 May 2005 00:07:33 -0400
My NSTextView subclass is adding and removing the NSLinkAttributeName attribute on various ranges of text. Although there is no visible effect (because the linkTextAttributes dictionary is empty), such changes are causing re-layout, with unacceptable effects on performance.
It would be very nice if the layout manager supported a functional equivalent of NSLinkAttributeName as a temporary attribute, or if the text storage were smart enough to recognize cases where an attribute change does not require re-layout. I may file an enhancement request along those lines. But in the meantime, can somebody suggest a reasonable way for me to prevent re-layout when I am making an attribute change that I know does not require it?
I am targeting the 10.2.8 API, but the issue affects me only in 10.4 (I'm using a different approach in 10.[1-3] that performs very well, but an NSTextView behavior change in 10.4 renders it untenable).
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
Prev by Date:
Re: DocoaBrowser for 10.4?
Next by Date:
Re: NSMetadataItem question.
Previous by thread:
Disabling Textured display of TextView Ruler?
Next by thread:
forwarding KVO from NSDocument to model
Index(es):
Date
Thread