Re: NSTextView trackingArea problem
Re: NSTextView trackingArea problem
- Subject: Re: NSTextView trackingArea problem
- From: Xu ZiZhan <email@hidden>
- Date: Fri, 27 Feb 2009 10:06:13 +0800
thanks Douglas,but that's not the point. rather I override the -mouseMoved,
and called [super mouseMoved:], the problem is still there. That's when the
mouse move into the text view bounds, it will call the mouseEntered and when
move out the bounds, it will call mouseExited, but I never set any tracking
area on the textview
2009/2/27 Douglas Davidson <email@hidden>
>
> 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