NSRunLoop question
NSRunLoop question
- Subject: NSRunLoop question
- From: Gerben Wierda <email@hidden>
- Date: Wed, 14 Aug 2002 16:35:01 +0200
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.