• 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: NSTextView trackingArea problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSTextView trackingArea problem


  • Subject: Re: NSTextView trackingArea problem
  • From: Douglas Davidson <email@hidden>
  • Date: Thu, 26 Feb 2009 13:50:50 -0800


On Feb 26, 2009, at 2:34 AM, Xu ZiZhan wrote:

dose the NSTextView has a trackingArea of [self bounds]? and how I can add
my custom trackingarea?

NSTextView tries to track all mouse movement over its text. Probably you would be better served by overriding -mouseMoved: and checking to see whether the mouse is in your region of interest yourself, rather than using a tracking rect. Be sure to call [super mouseMoved:] in the overriding method.


Douglas Davidson

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: NSTextView trackingArea problem
      • From: Xu ZiZhan <email@hidden>
References: 
 >NSTextView trackingArea problem (From: Xu ZiZhan <email@hidden>)

  • Prev by Date: Re: NSTextView very slow, any remedies?
  • Next by Date: Test if app run by Guest account?
  • Previous by thread: NSTextView trackingArea problem
  • Next by thread: Re: NSTextView trackingArea problem
  • Index(es):
    • Date
    • Thread