• 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
Weird crash in sendEvent - right click vs control click
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Weird crash in sendEvent - right click vs control click


  • Subject: Weird crash in sendEvent - right click vs control click
  • From: Brett Powley <email@hidden>
  • Date: Wed, 14 May 2008 14:21:19 +1000

Hi,

I'm having a rather weird crash in a Cocoa application. If I control- click on a window, my application crashes instantly. If I right click, it doesn't (and indeed my rightMouse method is eventually called as I want it to be).

I've tried enabling zombies, but that doesn't catch anything.

The stack trace is rather short:

objc_msgSend
-[NSWindow sendEvent:]
-[MyWindow sendEvent:]
-[NSApplication sendEvent:]
-[MyApplication sendEvent:]
-[NSApplication run]
NSApplicationMain
main

That leads to the questions:

(1) What's the difference between a control click and a right click that would lead the former to cause a crash and the latter not to?

(2) What's likely to be the cause of a crash in NSWindow sendEvent: ?

Thanks,
Brett


_______________________________________________

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: Weird crash in sendEvent - right click vs control click
      • From: Andrew Merenbach <email@hidden>
  • Prev by Date: Re: Create NSStrings from a mapped NSData object - safe?
  • Next by Date: Re: Save as and Open conditional code samples? tutorials?
  • Previous by thread: Re: Save as and Open conditional code samples? tutorials?
  • Next by thread: Re: Weird crash in sendEvent - right click vs control click
  • Index(es):
    • Date
    • Thread