Fun with NSRunLoop
Fun with NSRunLoop
- Subject: Fun with NSRunLoop
- From: Lloyd Sargent <email@hidden>
- Date: Wed, 15 Aug 2001 14:58:33 -0500
Okay, I've got a foundation tool where I have the following code:
[self createConnectionName:@"mytoolscommunicationchannel"]; //
create communication path
theRunLoop = [NSRunLoop currentRunLoop];
[theRunLoop run];
Now I want another program to send a message to the to tool. Okay, no
problem. But how can I programmatically tell the runloop to, in essence,
stop running? I've tried a lot of things and have had no success! I was
hoping there was something like:
[theRunLoop stopRunning]; or [theRunLoop dieDieDIE];
I did discover that unhappy things happen if you try to exit(0) in
response to a message (hangs my other program!). Any help would be most
welcome!
Frustrated,
Lloyd
-----
Canna Software Development
"while (!dead) [self beat_horse];" anon