开发者

How to know if a function is finished?

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜