hi guys
I want to write program that work like daemon and do something in every second for example.and startup in system boot.could you help me?
my program overview :
I don't know must be use launctl with .plist file?
Thanks
I want to write program that work like daemon and do something in every second for example.and startup in system boot.could you help me?
my program overview :
Code:
#import <Cocoa/Cocoa.h>
func1()
{
.....
}
func2()
{
....
}
func3()
{
....
}
int main()
{
func1();
func2();
func3(); /// This function must be execute interval - every second for example
}
I don't know must be use launctl with .plist file?
Thanks
Last edited: