@interface CookieClicker @property (nonatomic) NSTimer *timer; // ä¸å®ééã§ã¯ãªãã¯ã¤ãã³ããçºè¡ããã¿ã¤ãã¼ @property (nonatomic) id eventMonitor; // Esc ãã¼æ¼ä¸ã¤ãã³ããç£è¦ããã¢ãã¿ã¼ @end @implementation CookieClicker // ãã¦ã¹ã«ã¼ã½ã«ã®ä½ç½®ã1ç§éã«50ã¯ãªãã¯ãã - (IBAction)bakeMoreCookies:(id)sender { // ã¿ã¤ãã¼ã稼åä¸ãªãä½ãããªã if (self.timer) return; // Esc ãã¼ã®ç£è¦ãéå§ããï¼æ¼ããããã¿ã¤ãã¼ãæ¢ãã self.eventMonitor = [NSEvent addGlobalMonitorForEventsMatchingMask:NS
{{#tags}}- {{label}}
{{/tags}}