Re: Formatters and TextViews
Re: Formatters and TextViews
- Subject: Re: Formatters and TextViews
- From: Rob Rix <email@hidden>
- Date: Mon, 10 Sep 2001 17:58:31 -0400
The value for the link attribute can be whatever you choose to represent
what the link points to. For example, for hypertext links, you might
wish to use an NSURL. If you are linking to something specific to your
app, you probably will want to use a custom class. Whatever it is, it
will be sent to the text view's delegate as the "link" in the delegate's
textView:clickedOnLink:atIndex: method.
Ah, okay, excellent. Thanks again!
For hypertext links, I'll use NSURL, and for my own links, I'll link to an
entry in a dictionary my document class manages.
Thanks again, Douglas, this is excellent!
-- Rob
Witticism forthcoming.