Re: Bluetooth, NSApplication and NSRunLoop
Re: Bluetooth, NSApplication and NSRunLoop
- Subject: Re: Bluetooth, NSApplication and NSRunLoop
- From: Joseph Kelly <email@hidden>
- Date: Wed, 1 Mar 2006 11:01:53 -0800
I'll rephrase that as removing all the run loops that I've personally
installed, and when I print a description of the run loop to the
console, it looks like there are no more sources on it. I've tried
NSLog("%@") but not CFShow(CFRunLoopGetCurrent()). I might re-
investigate this, but since exit(0) works (i.e. none of my un-
released objects have any crucial -dealloc: tasks) I'm loathe to.
But if you find anything, I'd sure like to know ;-)
joe
On Mar 1, 2006, at 10:28 AM, Van Den Driessche, George wrote:
I've hit the exact same problem as you - my run loop never
terminates. As you point out, the documentation says it should stop
once all its input sources have been removed. You claim that
removing all the sources doesn't work, but how are you trying to do
that? I can't find any API for enumerating the inputs of a run
loop, and I can't find what it is I am meant to invalidate in order
to remove the Bluetooth session implicitly. Any hints?
George
From: Joseph Kelly [mailto:email@hidden]
Sent: 01 March 2006 17:59
To: Van Den Driessche, George
Cc: email@hidden
Subject: Re: Bluetooth, NSApplication and NSRunLoop
This is what I've done -- in main.m:
NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
NS_DURING
[[NSRunLoop currentRunLoop] configureAsServer];
[[NSRunLoop currentRunLoop] run];
NS_HANDLER
NSLog(@"*** tool got exception while running. %@",
localException);
NS_ENDHANDLER
[pool release];
I'm still trying to figure out how to exit the run loop -- the
documentation says you've gotta remove all the sources, and I've
done just that with no luck (and I've also tried CFRunLoopQuit), so
I just exit(0).
On Mar 1, 2006, at 8:47 AM, Van Den Driessche, George wrote:
[SNIP]
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Bluetooth-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden