• 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
Attributes in a string
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: Attributes in a string
      • From: Greg Titus <email@hidden>
  • Prev by Date: Re: Unicode Problem
  • Next by Date: Re: Unicode Problem
  • Previous by thread: Re: Interface Builder and projects with variable number of windows
  • Next by thread: Re: Attributes in a string
  • Index(es):
    • Date
    • Thread