views:

42

answers:

1

Hi,

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!

A: 

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

mipadi