Re: Foundation tool question
Re: Foundation tool question
- Subject: Re: Foundation tool question
- From: John Hörnkvist <email@hidden>
- Date: Wed, 30 May 2001 11:33:43 +0200
On Wednesday, May 30, 2001, at 11:21 AM, Rob Rix wrote:
In the main file, I have a timer set up that calls a method in the main
work object every five seconds. After that, not a thing. Now, I
understand why it's quitting. That's kind of slap-your-forehead, "of
course!" behaviour; it's obvious. My question is: How should I keep it
from quitting?
Start a run loop when you're done with you initializations.
Look at the docs for NSRunLoop.
IIRC, this will do what you want:
[[NSRunLoop currentRunLoop] run];
Regards,
John Hornkvist
--
ToastedMarshmallow, the perfect Cocoa companion
http://www.toastedmarshmallow.com