How to use NSAutoreleasePool in AppleScriptObjC
问题 I am wondering how to stop another function from a background function. In addition, I have to drain NSAutoreleasePool, but I don't know how to do it. I think this app sometimes freeze if I don't release pool. property i : 0 property myLabel : missing value on myStartButtonHandler_(sender) my performSelectorInBackground_withObject_("start", missing value) -- This code prevents "Stop" Button from freezing. end myStartButtonHandler_ on myStopButtonHandler_(sender) -- I want to stop start()