Attributes in a string
Attributes in a string
- Subject: Attributes in a string
- From: Marco Binder <email@hidden>
- Date: Wed, 28 May 2003 17:24:11 +0200
Hello,
I want to "attach" some objects to delimited character ranges of a
string. An NSLinkAttribute in an NSAttributedString at the first glance
look perfect for this. But: in my case, ranges can overlap, i.e. one
char can refer to multiple objects! I guess, I could use cutom
attribute types with a unique identifier for each of my objects. The of
course, it will become harder to extract my custom attributes from the
list of all attributes at a given char index. I d have to check the
keys of all attributes against a list of my object identifiers.
Does anyone have a better idea as how to deal with this?
Marco
--
|\ /| email@hidden
http://www.marco-binder.de
| \/ | Telefon: 07531 / 94 19 94 Fax: 07531 / 94 19 92
| |ARCO Snail-Mail: Banater Str. 3 - 78467 Konstanz
BINDER _____________________________________________________
_______________________________________________
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.