Re: unichar for hyperlink?
Re: unichar for hyperlink?
- Subject: Re: unichar for hyperlink?
- From: Douglas Davidson <email@hidden>
- Date: Wed, 25 Feb 2004 14:29:55 -0800
On Feb 25, 2004, at 2:11 PM, Jeremy Dronfield wrote:
Good suggestion. Since attributeRuns is so thinly documented, I have
one other question. Given that I've got my array of attribute runs,
I'm iterating through them, I've found a run with a link attribute,
like so:
Don't use attributeRuns! It's only for scripting!
The appropriate way to deal with the attributes on an NSTextStorage is
via NSAttributedString methods--NSTextStorage is a direct subclass of
NSMutableAttributedString. In this case, you would use
attributesAtIndex:expectedRange: where the second argument would return
by reference the range of the run.
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.