• 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
NSEvent locationInWindow undefined for non-mouse events, how to catch?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSEvent locationInWindow undefined for non-mouse events, how to catch?


  • Subject: NSEvent locationInWindow undefined for non-mouse events, how to catch?
  • From: Sean McBride <email@hidden>
  • Date: Mon, 13 Feb 2012 16:25:35 -0500
  • Organization: Rogue Research Inc.

Hi all,

The NSEvent locationInWindow docs say: "For non-mouse events the return value of this method is undefined."

I've just been bitten by this.  Seems it would be easy to detect at runtime and assert, is there any magic environment variable or defaults value that can help me catch such incorrect usage?  I've searched but not found...

Cheers,

--
____________________________________________________________
Sean McBride, B. Eng                 email@hidden
Rogue Research                        www.rogue-research.com
Mac Software Developer              Montréal, Québec, Canada



_______________________________________________

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: NSEvent locationInWindow undefined for non-mouse events, how to catch?
      • From: Martin Wierschin <email@hidden>
    • Re: NSEvent locationInWindow undefined for non-mouse events, how to catch?
      • From: Seth Willits <email@hidden>
  • Prev by Date: Re: NSReadPixel
  • Next by Date: iCal syncing on multiple computers
  • Previous by thread: Re: Odd display of percent character
  • Next by thread: Re: NSEvent locationInWindow undefined for non-mouse events, how to catch?
  • Index(es):
    • Date
    • Thread