Re: NSRunLoop question
Re: NSRunLoop question
- Subject: Re: NSRunLoop question
- From: John Haager <email@hidden>
- Date: Wed, 14 Aug 2002 08:18:11 -0700
If you remove all runloop sources from a run loop, it will automatically
exit.
John
On Wednesday, August 14, 2002, at 07:35 AM, Gerben Wierda wrote:
I have a foundation-using tool that opens a DO server, listens to it,
gets a call for a (oneway) method, executes it and quits. This all
works, except for the quits part.
When I have started the DO server, I use
[runLoop run]
where runLoop is either [NSRunLoop currentRunLoop] or [[[NSRunLoop
alloc] init] addPort:[handler receivePort]
forMode:NSConnectionReplyMode]. Both cases work equally good, but still
I do not know how to quit the run loop.
I can of course just exit(), but that is not really nice, apart from
that I might want to do something after the [runLoop run].
So, how do I kill a running NSRunLoop?
G
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
-> John Haager <-
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.