Re: Is it possible to handle a mouse click in an NSTextView without subclassing it?
Re: Is it possible to handle a mouse click in an NSTextView without subclassing it?
- Subject: Re: Is it possible to handle a mouse click in an NSTextView without subclassing it?
- From: Douglas Davidson <email@hidden>
- Date: Fri, 20 Oct 2006 09:15:32 -0700
On Oct 20, 2006, at 9:12 AM, Ricky Sharp wrote:
Depending upon what you're actually putting in the text view (e.g.
are the clickable characters part of links?), you could use
delegate methods like textView:clickedOnLink:atIndex:
You could even use text attachments too.
If it's the case where your text view will just contain raw text
and you need to handle mouse-down in general, then I think you'll
need to subclass.
It really depends on what you want to do. The delegate methods are
generally at a higher level of abstraction--for example, there is a
delegate method for changes in the selection, and most clicks on the
text will change the selection.
Douglas DAvidson
_______________________________________________
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