قالب وردپرس درنا توس
Home / Apple / Michael Tsai – Blog – Troubleshooting the responder chain

Michael Tsai – Blog – Troubleshooting the responder chain



Jeff Nadeau :

Maybe this will make it easier to see what is happening with the responder chain. Pause the debugger and run

  (lldb) e - (void) [[[NSClassFromString(@"NSDebugMenuResponderChainProvider") alloc] init] toggleResponderChainPanel: nil] 

and then continue. (I reserve the right to interrupt this.)

Andy Lee :

I usually add my own method to the app delegate printing the responder chain, starting with the current first responder. Often I add a temporary menu item called this method and assign it a shortcut.

And here is a link to the responder chain documentation, since it is now in the archive and not easy to find just by following links. (You would think it would be linked from the NSResponder page.)

Cocoa Debugging Documentation Mac macOS 1

0.14 Mojave Programming

Stay tuned by subscribing to the RSS feed for this post.




Source link