[TxMt Plugins] sendAction Question

Allan Odgaard throw-away-1 at macromates.com
Sun Mar 18 17:24:29 UTC 2007


On 18. Mar 2007, at 01:31, Kirt Fitzpatrick wrote:

>> OakTextView does implement the majority of NSResponder mehtods. [...]
> If this is true than how come Todd and Rob's suggestions for  
> sendAction do not work?
>
> [[NSApplication sharedApplication] sendAction: @selector(moveLeft:)  
> to: nil from: self];
> -- or --
> [[[NSApplication sharedApplication] mainWindow] moveLeft:self]

The latter surely should not work. The former, maybe because your  
plug-in opens a window that interferes with the responder chain? Or  
some other problem in the code? It is hard to diagnose without seeing  
the full source.




More information about the textmate-plugins mailing list