So I have an application that I have developed in a NSDocument. I want to be able to have it do an update on a timer which I think understand how to implement.
The only problem is I am not familiar with where the NSTimer function would be continuously called every lets say 1 second?
I have a MyDocument.m file which contains my UpdateUI function which is what I would want the NSTimer to call.
And then I also have my main.h file which simply has
Thanks.
The only problem is I am not familiar with where the NSTimer function would be continuously called every lets say 1 second?
I have a MyDocument.m file which contains my UpdateUI function which is what I would want the NSTimer to call.
And then I also have my main.h file which simply has
Code:
#import <Cocoa/Cocoa.h>
int main(int argc, char *argv[])
{
return NSApplicationMain(argc, (const char **) argv);
}
Thanks.