• 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: mouse moved events in NSView?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: mouse moved events in NSView?


  • Subject: Re: mouse moved events in NSView?
  • From: "David Piasecki" <email@hidden>
  • Date: Tue, 11 May 2004 18:14:52 -0700

I actually just did that a few minutes ago, but thanks. It's still not working, though I think Satoshi is correct regarding setting the first responder for mouse moved events. I just don't know how to do that. So far I tried overriding the acceptsFirstResponder method to always return true.

David


On May 11, 2004, at 6:07 PM, Allan Odgaard wrote:

On 12. May 2004, at 2:40, David Piasecki wrote:

[...] Just for kicks, I tried [myView setAcceptsMouseMovedEvents:true], but that gives a warning that myView may not respond to that event. So I'm not sure how to enable the mouseMoved event for an NSView [...]

Use [[myView window] setAcceptsMouseMovedEvents:YES]
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.


  • Follow-Ups:
    • Re: mouse moved events in NSView?
      • From: Allan Odgaard <email@hidden>
References: 
 >Re: mouse moved events in NSView? (From: "David Piasecki" <email@hidden>)
 >Re: mouse moved events in NSView? (From: Allan Odgaard <email@hidden>)

  • Prev by Date: Re: cmd-q versus menu item quit
  • Next by Date: Re: mouse moved events in NSView?
  • Previous by thread: Re: mouse moved events in NSView?
  • Next by thread: Re: mouse moved events in NSView?
  • Index(es):
    • Date
    • Thread