我试图在单击NSButton时调用ibaction方法,但是我不知道如何做到这一点,而不是单击时调用它。
[yourButton sendActionOn:NSLeftMouseDownMask];
[btn setAction:@selector(Method:)];
[btn setTarget:objectThatRespondsToMethod];
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.