• 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: Satoshi Matsumoto <email@hidden>
  • Date: Wed, 12 May 2004 09:50:16 +0900

on 04.5.12 9:40 AM, David Piasecki at email@hidden wrote:
> I had tried adding the mouseMoved event to my NSView, and it didn't
> work. I know from the documentation that "NSWindows don9t accept
> mouse-moved events by default." 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, or if it's even possible (though I
> don't see why it shouldn't be).

Your NSView should be the firstResponder for the mouseMoved event.

Satoshi
-----------------------------------------------------
Satoshi Matsumoto <email@hidden>
816-5 Odake, Odawara, Kanagawa, Japan 256-0802
_______________________________________________
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.


References: 
 >Re: mouse moved events in NSView? (From: "David Piasecki" <email@hidden>)

  • Prev by Date: Re: mouse moved events in NSView?
  • 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