Re: How to make a RunLoop patiently do nothing?
Re: How to make a RunLoop patiently do nothing?
- Subject: Re: How to make a RunLoop patiently do nothing?
- From: Chris Idou <email@hidden>
- Date: Wed, 3 Dec 2008 20:00:39 -0800 (PST)
--- On Wed, 3/12/08, Roland King <email@hidden> wrote:
> could you stick a useless, firing in a million years, timer
> in it?
Ok.
> how will you eventually make it shut down even if you do
> do that, or will it just hang out there until the application
> terminates?
Good question. I had assumed that something like
[myThread performSelector:@selector(exit) onThread:myThread ...
would do the trick. Would this be a "nice" way to do it?
>
> Chris Idou wrote:
>
> >I want to have a separate thread in my app which does
> time consuming things. I want to assign tasks to this thread
> using performSelector:onThread.
> >
> >Now you can't have a runloop with no input sources,
> or it exits immediately. So how do I start a thread with a
> runloop that does nothing except patiently wait for
> performSelector:onThread: calls?
> >
> >
> >
> >
> >
> > Start your day with Yahoo!7 and win a Sony Bravia
> TV. Enter now
> http://au.docs.yahoo.com/homepageset/?p1=other&p2=au&p3=tagline
> >_______________________________________________
> >
> >Cocoa-dev mailing list (email@hidden)
> >
> >Please do not post admin requests or moderator comments
> to the list.
> >Contact the moderators at
> cocoa-dev-admins(at)lists.apple.com
> >
> >Help/Unsubscribe/Update your Subscription:
> >
> >This email sent to email@hidden
> >
> >
Start your day with Yahoo!7 and win a Sony Bravia TV. Enter now http://au.docs.yahoo.com/homepageset/?p1=other&p2=au&p3=tagline
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden