This fixes the issue I discovered in #7, and is backwards compatible with previous releases of Xcode 6.
As of Xcode 6.4, it seems plugins are now loaded in Xcode's applicationWillFinishLaunching method, which means that [NSApp mainMenu] isn't populated at plugin init time. What I've done is offload the command "binding" to a method that gets fired upon being notified of NSApplicationDidFinishLaunchingNotification. Voila!
This fixes the issue I discovered in #7, and is backwards compatible with previous releases of Xcode 6.
As of Xcode 6.4, it seems plugins are now loaded in Xcode's
applicationWillFinishLaunching
method, which means that[NSApp mainMenu]
isn't populated at plugininit
time. What I've done is offload the command "binding" to a method that gets fired upon being notified ofNSApplicationDidFinishLaunchingNotification
. Voila!