Weird crash in sendEvent - right click vs control click
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