Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

norbjarte

macrumors newbie
Original poster
Oct 11, 2008
1
0
Case: Need a way to trigger a notification every X minutes (like 15, 20) to my program, which plays a notification.

Pros: Experienced programmer
Cons: Learning iPhone and OSX programming.

Solution A: Run program in background? How?
Solution B: Create a crontab simular event to trigger a event? How?

PS: The interval (X minutes) should be able to be set from the program.

Anyone could help point me in the right direction to look for a solution, if its possible? :)
 

Pring

macrumors 6502
Sep 17, 2003
310
0
Not possible at the moment. Apple will supply a push notification service later this year (hopefully, the timetable has already slipped) which would allow you to prompt the user to run the program. But you can't automatically trigger it ever X minutes, even with the push notification service.
 

firewood

macrumors G3
Jul 29, 2003
8,107
1,345
Silicon Valley
Solution A: Run program in background? How?
Solution B: Create a crontab simular event to trigger a event? How?

Using the SDK API's, there is no way to run any program or process in the background. And you can't access cron because it's outside your application's sandbox.

.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.