• 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: Cannot get mouseMoved in NSView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Cannot get mouseMoved in NSView
      • From: email@hidden
    • Re: Cannot get mouseMoved in NSView
      • From: Henry McGilton <email@hidden>
  • Prev by Date: Cannot get mouseMoved in NSView
  • Next by Date: NSTextView Drag and Drop (Colors)
  • Previous by thread: Cannot get mouseMoved in NSView
  • Next by thread: Re: Cannot get mouseMoved in NSView
  • Index(es):
    • Date
    • Thread