开发者

How to know if a function is finished?

开发者 https://www.devze.com 2023-01-15 17:11 出处:网络
I\'m using [NSTimer scheduledTimerWithTimeInterval:0 target:self selector:@selector(myfunc:) userInfo:text repeats:false];

I'm using

[NSTimer scheduledTimerWithTimeInterval:0 target:self selector:@selector(myfunc:) userInfo:text repeats:false];

in my code. How can I know if myfunc has finished running开发者_运维问答 so that I can fetch the global variables it has changed?

Thank you!


You can notify the caller via Cocoa's notification system.

0

精彩评论

暂无评论...
验证码 换一张
取 消