• 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
Re: Is it possible to handle a mouse click in an NSTextView without subclassing it?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
References: 
 >Is it possible to handle a mouse click in an NSTextView without subclassing it? (From: Damian Terentyev <email@hidden>)
 >Re: Is it possible to handle a mouse click in an NSTextView without subclassing it? (From: Ricky Sharp <email@hidden>)

  • Prev by Date: Re: Is it possible to handle a mouse click in an NSTextView without subclassing it?
  • Next by Date: Re: drawing NSTextFieldCell nested inside NSTextFieldCell subclass causes crash
  • Previous by thread: Re: Is it possible to handle a mouse click in an NSTextView without subclassing it?
  • Next by thread: Re: Is it possible to handle a mouse click in an NSTextView without subclassing it?
  • Index(es):
    • Date
    • Thread