Re: Formatters and TextViews
Re: Formatters and TextViews
- Subject: Re: Formatters and TextViews
- From: Ondra Cada <email@hidden>
- Date: Mon, 10 Sep 2001 20:12:55 +0200
Rob,
>
>>>>> Rob Rix (RR) wrote at Sun, 9 Sep 2001 15:46:54 -0400:
RR> This still leaves me with the difficulty of setting up the actual links.
RR> Maybe I should subclass NSTextView and have my subclass respond to
RR> click-events on links?
I guess so. I would do that, probably, if I have to solve the problem. Well,
I've done in my time some tricks like a special text style for links, plus a
NSTextView delegate with textViewDidChangeSelection: which checked the style
under cursor and behaved appropriately... well, it is another possible way,
but a quite lame one.
There also used to be an API for links (search NSTextView.h for "link") and
cells embedded in text ("cell"); I must admit I don't know whether those APIs
made it to OSX, and even if so, whether not deprecated...
---
Ondra Cada
OCSoftware: email@hidden
http://www.ocs.cz
private email@hidden
http://www.ocs.cz/oc