• 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
Providing citation data for a text view
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Providing citation data for a text view


  • Subject: Providing citation data for a text view
  • From: "D.K. Johnston" <email@hidden>
  • Date: Wed, 28 Jun 2006 16:52:54 -0700

I want to display some read-only text in a text view, along with a text field that shows citation information (e.g. chapter, section, line numbers) for the selected line. Of course, the text field should be updated every time the selected line changes. I was thinking of using NSAttributedString, with the citation values for each line embedded as an attribute; or perhaps creating an array containing the citation values that is indexed somehow to the lines of text displayed in the text view.

I'm sure I'm reinventing the wheel. Can anyone point me toward some documentation, or example code, that deals with this kind of thing?

dkj
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Providing citation data for a text view
      • From: Douglas Davidson <email@hidden>
  • Prev by Date: Re: Terminate File Copy
  • Next by Date: Re: Providing citation data for a text view
  • Previous by thread: Re: How to debug during Unit Test (otest)
  • Next by thread: Re: Providing citation data for a text view
  • Index(es):
    • Date
    • Thread