Re: any help with [NSThread initWithTarget:selector:object]???

2008-05-15 Thread Michael Vannorsdel
You might try using pthreads, they're easy to use but not NSThread easy. They have several more options and make the base NSThread is built upon. There's a join option with pthreads where one can wait for another to finish which might be what you're looking for. Look at pthread_join.

Re: any help with [NSThread initWithTarget:selector:object]???

2008-05-15 Thread Ken Thomases
On May 15, 2008, at 1:02 AM, Alex Esplin wrote: When you start a thread with [threadname start] how do you wait for it? I can't seem to find anything on that... There doesn't seem to be any "join"-type functionality in NSThread. You have to use thread synchronization primitives, I suppose.

Re: any help with [NSThread initWithTarget:selector:object]???

2008-05-14 Thread Alex Esplin
On Wed, May 14, 2008 at 11:26 PM, Ken Thomases <[EMAIL PROTECTED]> wrote: > On May 15, 2008, at 12:15 AM, Alex Esplin wrote: >> >> Everything compiles, and when I run it, the Console tells me that >> debugging completed normally. However, I'm getting nothing in the way >> of output from any of the

Re: any help with [NSThread initWithTarget:selector:object]???

2008-05-14 Thread Ken Thomases
On May 15, 2008, at 12:15 AM, Alex Esplin wrote: Everything compiles, and when I run it, the Console tells me that debugging completed normally. However, I'm getting nothing in the way of output from any of the threads: Is your main function waiting for the threads to complete, or is it just

Re: any help with [NSThread initWithTarget:selector:object]???

2008-05-14 Thread Bill Bumgarner
On May 14, 2008, at 10:15 PM, Alex Esplin wrote: Everything compiles, and when I run it, the Console tells me that debugging completed normally. However, I'm getting nothing in the way of output from any of the threads: Does your main thread wait until the background threads are done? b.bum

any help with [NSThread initWithTarget:selector:object]???

2008-05-14 Thread Alex Esplin
Hey all, Sorry if this has been answered before, I've been googling and not coming up with a direct answer to my problem. I'm working on a (should be) trivial Vote Counter program for a class. I've elected to implement the project in Objective-C/Foundation because I already know how to do someth