Re: Mouse tracking under a transparent view still working
Re: Mouse tracking under a transparent view still working
- Subject: Re: Mouse tracking under a transparent view still working
- From: Navneet Kumar <email@hidden>
- Date: Sun, 11 Jan 2015 19:03:06 +0530
Hi,
Implemented tracking area in the transparent view, still the under view's button shows hovering.
It seems complicated after reading:
http://www.cocoabuilder.com/archive/cocoa/197777-the-nstrackingarea-report.html <http://www.cocoabuilder.com/archive/cocoa/197777-the-nstrackingarea-report.html>
Still not able to understand as to fix this problem.
Wishes,
Navneet
> On 11-Jan-2015, at 3:53 pm, Markus Spoettl <email@hidden> wrote:
>
> On 11/01/15 07:12, Navneet Kumar wrote:
>> So the mouse click etc are not passing through, but the hover button under it
>> still shows hovering effect by drawing the border.
>
> You probably need to establish a tracking area on the view that is supposed to
> absorb the mouse events. The reason is that -mouseMoved: events will not
> automatically be called just by implementing the event method (unlike the other mouse methods), you need a tracking area for that to work.
>
> Regards
> Markus
> --
> __________________________________________
> Markus Spoettl
> _______________________________________________
>
> 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
_______________________________________________
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