Question

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.

Was it helpful?

Solution

[yourButton sendActionOn:NSLeftMouseDownMask];

OTHER TIPS

[btn setAction:@selector(Method:)];

[btn setTarget:objectThatRespondsToMethod];
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top