Thank you all,
I'm more acquainted with what i must do now, i thought at one time, i read somewhere that NSRunLoop was specific for Cocoa Apps and that CFRunLoop was specific for Foundation Tools.
Now, the one thing i don't understand is, how do i connect bluetooth as source or observer of the RunLoop? Is this nonsense? Or i just need to set a delegate for the inquiry and other stuff that automatically intercepts it?
(including setDelegate and registration of notification methods)
What's exactly this registration of notifications methods?
I'm used to C#, Java and C++, where there's nothing as NSRunLoop so i'm not familiar with what it does, and how.
Thank you once again, Hugo
On Oct 6, 2007, at 10:39 PM, Tim Hewett wrote: Hugo,
It seems to me that all you have to do is perform your Bluetooth registration and setup (including setDelegate and registration of notification methods) then run the NSRunLoop.
As an example this is the entry point for my Bluetooth-only NSThread:
- (void)bluetoothServer:(id)sender { NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
[self publishService];
[[NSRunLoop currentRunLoop] run]; } Tim.
Hello developers,
I can't seem to find much information about this. I am creating a Foundation Tool from an existing bluetooth cocoa application. After i remove all the GUI related stuff the application ceases to work. I checked out, and all the processisng of the application is run on NSRunLoop.
I've read about Runloops and all, but i can't seem to find any example with bluetooth.
Can anyone please guide me on the right path? I'm really lost here.
Thanks, Hugo
|