Foundation tool question
Foundation tool question
- Subject: Foundation tool question
- From: Rob Rix <email@hidden>
- Date: Wed, 30 May 2001 05:21:38 -0400
I have just completed (I hope!) the grunt work in a Foundation tool I've
been making. Only one problem remains: It quits immediately upon launching.
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?
Note that my tool does not normally require input from the user, as it's
going to be run in a client/server set up via DO with a GUI-based app.
I considered using the plain old stdin (assuming that's possible), but for
testing purposes, my tool does quite a few NSLog's. I am going on the
assumption that NSLog's will go to the terminal, not the console, when you
run the tool from the console.
So, can I use a loop that checks stdin (scanf, et al) for an escape
character (x or whatever)? If so, should I, or is there a better solution
until I set up DO with this?
Thanks for your time, and I hope I've been clear enough,
-- Rob
This has been a recording.