[yourButton sendActionOn:NSLeftMouseDownMask];
MouseDown event for NSButton?
-
29-06-2022 - |
Pergunta
I'm trying to call an ibaction method when an NSButton is clicked down, but I can't figure out how to get do to that instead of having it called when clicked up.
Solução
Outras dicas
[btn setAction:@selector(Method:)];
[btn setTarget:objectThatRespondsToMethod];
Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow