• 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: [TRTFM] mouseMove invoked on non-FrstResponder?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [TRTFM] mouseMove invoked on non-FrstResponder?


  • Subject: Re: [TRTFM] mouseMove invoked on non-FrstResponder?
  • From: "John C. Randolph" <email@hidden>
  • Date: Tue, 13 Aug 2002 17:41:46 -0700

On Tuesday, August 13, 2002, at 05:17 PM, Allan Odgaard wrote:

Hi there,

I'm going crazy with the event stuff in Cocoa.

I have a view in which I want to receive mouse move events, even though this view isn't the first responder (an NSTextField often is) -- I read somewhere that mouse events were distributed to all objects, but perhaps that only apply to mouse up/down, cause I don't get my move-events.

You have to set the window's event mask to include mouse moved events. They're ignored by default.

see: - (void)setAcceptsMouseMovedEvents:(BOOL)flag in the NSWindow documentation.

-jcr


John C. Randolph <email@hidden> (408) 974-8819
Sr. Cocoa Software Engineer,
Apple Worldwide Developer Relations
http://developer.apple.com/cocoa/index.html
_______________________________________________
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: [TRTFM] mouseMove invoked on non-FrstResponder?
      • From: Allan Odgaard <email@hidden>
References: 
 >[TRTFM] mouseMove invoked on non-FrstResponder? (From: Allan Odgaard <email@hidden>)

  • Prev by Date: Re: Stupid newbie question - determine if integer is even or odd
  • Next by Date: Re: [TRTFM] mouseMove invoked on non-FrstResponder?
  • Previous by thread: [TRTFM] mouseMove invoked on non-FrstResponder?
  • Next by thread: Re: [TRTFM] mouseMove invoked on non-FrstResponder?
  • Index(es):
    • Date
    • Thread