Re: NSRunLoop question
Re: NSRunLoop question
- Subject: Re: NSRunLoop question
- From: Brian Webster <email@hidden>
- Date: Wed, 14 Aug 2002 11:15:57 -0500
The docs for -[NSRunLoop run] state "If there are no input
sources in the run loop, it exits immediately". So, removing
your port from the run loop should cause it to stop running.
On Wednesday, August 14, 2002, at 10:05 AM, cocoa-dev-
email@hidden 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?
--
Brian Webster
email@hidden
http://homepage.mac.com/bwebster
_______________________________________________
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.