jverkoey/nimbus — pull request #102 by jverkoey (2011-10-27 01:13:00+00:00)
Title: Attributedlabel fixes

This fixes the following things:

- Caching links so we don't run the data detector every time the text is drawn, only when the text changes.
- Slightly darker default highlight color to more closely match Safari.
- Handling touchesCanceled. Put a label in a scroll view, tap a link, and then start scrolling the scroll view. Before this change the highlight for the label wouldn't go away because we weren't handling touchesCanceled. Now the highlight goes away as expected.
- Misc cleanup of the code for consistency with the rest of the codebase.