Re: unichar for hyperlink?
Re: unichar for hyperlink?
- Subject: Re: unichar for hyperlink?
- From: Douglas Davidson <email@hidden>
- Date: Wed, 25 Feb 2004 11:51:15 -0800
On Feb 25, 2004, at 11:33 AM, Jeremy Dronfield wrote:
That's what I was afraid of. What I'm doing is cycling through the
characters in a text storage object looking for attachments and
hyperlinks. For attachments I can simply check for the character, but
looking for NSLinkAttributeName I'm going to have to hunt through the
attributes of every character. Damn.
It's often more efficient to iterate through the attributes, because
they are typically unchanged for long runs, and the APIs return them
per run. You can get both attachments and links by iterating through
the attributes, looking for the attachment and link attributes.
Attribute fixing makes sure that the attachment attribute is not
applied to non-attachment characters.
Douglas Davidson
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.