Re: Exception on ^⌘D when AppKit tries to use Lookup on my custom view
Re: Exception on ^⌘D when AppKit tries to use Lookup on my custom view
- Subject: Re: Exception on ^⌘D when AppKit tries to use Lookup on my custom view
- From: Markus Spoettl <email@hidden>
- Date: Thu, 09 Aug 2012 18:16:57 +0200
It doesn't seem like this is one of my better days. I mixed up things, I
actually used a different key equivalent, so there's no wonder my menu item
didn't work. Arghh. Sorry for the noise!
That leaves the exception that still happens. Any way to get rid of that? Or
should I ignore it?
Regards
Markus
On 8/9/12 3:25 PM, Markus Spoettl wrote:
I have custom views that can become first responder. If one of them is and I
press CTRL-COMMAND-D, my App silently throws an exception, no log is generated
(call stack below).
I have a main menu item that uses the same key equivalent (CTRL-COMMAND-D) and
for some reason this never happened until today. Now my menu item is being
ignored and instead the app does nothing (or stops in Xcode when being debugged).
None of my custom views implement accessibility API and I don't know where the
system shortcut is coming from (it's neither in keyboard shortcuts or the
Dictionary preferences, nor or Accessibility Preferences). I'm pretty sure I
didn't change any system settings.
I have no idea (1) where this exception is coming from all of a sudden and (2)
why my menu item key equivalent is being ignored (the item works when selected
from the menu). Google doesn't turn up anything (the reason may be that I don't
know what I'm looking for).
How can I make AppKit stop trying to query my views (which I believe is what
happens)?
I'm on 10.7.4 with Xcode 4.4.1 and the 10.7 SDK.
Please help!
Regards
Markus
#0 0x00007fff8f779d33 in objc_exception_throw ()
#1 0x00007fff853411b9 in -[NSException raise] ()
#2 0x00007fff90837090 in
-[NSObject(NSObjectAccessibilityAttributeAccessAdditions)
accessibilityAttributeValue:forParameter:] ()
#3 0x000000010f96c0a9 in -[LUAccessibilityTextAccessor
_termAtLocation:textOrigin:language:partOfSpeech:] ()
#4 0x000000010f95ccd5 in -[LUTextAccessor
termAtLocation:textOrigin:language:partOfSpeech:] ()
#5 0x000000010f97d1bd in -[LUExtractor focusTermAndLocation:options:] ()
#6 0x000000010f95f0dc in __56+[LULookupDefinitionModule
focusTermUsingQueue:handler:]_block_invoke_0 ()
#7 0x00007fff86e71a86 in _dispatch_call_block_and_release ()
#8 0x00007fff86e738f6 in _dispatch_main_queue_callback_4CF ()
#9 0x00007fff8524be7c in __CFRunLoopRun ()
#10 0x00007fff8524b486 in CFRunLoopRunSpecific ()
#11 0x00007fff897de4d3 in RunCurrentEventLoopInMode ()
#12 0x00007fff897e5781 in ReceiveNextEventCommon ()
#13 0x00007fff897e560e in BlockUntilNextEventMatchingListInMode ()
#14 0x00007fff905a0e31 in _DPSNextEvent ()
#15 0x00007fff905a0735 in -[NSApplication
nextEventMatchingMask:untilDate:inMode:dequeue:] ()
#16 0x00007fff9059d071 in -[NSApplication run] ()
#17 0x00007fff90819244 in NSApplicationMain ()
#18 0x000000010000a9d2 in main at /Users/markus/Projects/app/src/main.m:20
#19 0x0000000100001764 in start ()
--
__________________________________________
Markus Spoettl
_______________________________________________
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