• 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: Unable to recieve mouse moved events on NSBorderless window
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Unable to recieve mouse moved events on NSBorderless window


  • Subject: Re: Unable to recieve mouse moved events on NSBorderless window
  • From: Quincey Morris <email@hidden>
  • Date: Wed, 20 Jan 2010 14:05:34 -0800

On Jan 20, 2010, at 05:33, Poonam Virupaxi Shigihalli wrote:

> I am using NSBorderless window style mask for window to set in full screen mode. I am unable to recieve the mouse moved event on borderless window.
> If I set the window style mask to titled I am able to recieve  mouse moved events.
>
> I have set in awake from nib
> [window  setAcceptsMouseMovedEvents:YES];
>
> And using mousemoved: function to detect the event.

This is not an answer to your actual question (apart from noting that window behavior is famous for being different in non-standard window configurations), but you might be able to bypass your problem by using NSTrackingArea (Leopard and later) instead.

The side benefit of this is that tracking mouse movements with tracking areas is (likely) somewhat more efficient overall than using the older almost-deprecated 'setAcceptsMouseMovedEvents:YES' technique.


_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Unable to recieve mouse moved events on NSBorderless window
      • From: Andy Lee <email@hidden>
References: 
 >Unable to recieve mouse moved events on NSBorderless window (From: "Poonam Virupaxi Shigihalli" <email@hidden>)

  • Prev by Date: Re: Problem using bindings with deep key paths
  • Next by Date: Re: Problem using bindings with deep key paths
  • Previous by thread: Unable to recieve mouse moved events on NSBorderless window
  • Next by thread: Re: Unable to recieve mouse moved events on NSBorderless window
  • Index(es):
    • Date
    • Thread