Re: Cannot get mouseMoved in NSView
Re: Cannot get mouseMoved in NSView
- Subject: Re: Cannot get mouseMoved in NSView
- From: Lorenzo <email@hidden>
- Date: Mon, 29 May 2006 02:18:31 +0200
I did it already. I overrided the method acceptsFirstResponder in my view
- (BOOL)acceptsFirstResponder { return YES; }
I even added a trackingRect in the init method of my view
[self addTrackingRect:[self bounds] owner:self userData:nil
assumeInside:NO];
...but no luck. Other ideas?
Best Regards
--
Lorenzo
email: email@hidden
>
> From: email@hidden
> Date: Sun, 28 May 2006 17:03:35 -0700
> To: Lorenzo <email@hidden>
> Subject: Re: Cannot get mouseMoved in NSView
>
> how about enabling first responder in your view?
> - (BOOL)setAcceptsFirstRepsonder
>
>
> On 5/28/06, Lorenzo < email@hidden <mailto:email@hidden> > wrote:
> I cannot get mouseMoved in my custom NSView.
>> I have already setAcceptsMouseMovedEvents:YES in my window.
>> The window detects well the mouseMoved event, but the subviews cannot.
>> What did I forget?
>>
>> In my window I have several subviews which should receive the mouseMoved
>> event and a NSScrollView which should not receive it.
>>
>>
>> Best Regards
>> --
>> Lorenzo
>> email: email@hidden
>>
>> _______________________________________________
>> 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
>>
>
_______________________________________________
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