how to map run loop input sources to specific hardware?
how to map run loop input sources to specific hardware?
- Subject: how to map run loop input sources to specific hardware?
- From: luc bergevin <email@hidden>
- Date: Tue, 11 May 2004 10:44:38 -0400
hi everybody,
I'm quite new to mac programming, and I don't understand how run loops
work.
After a Bluetooth client established a connection to a server, it sends
data. Then the client has to wait for an answer from the server to the
callback
( - (void)rfcommChannelData:(IOBluetoothRFCOMMChannel*)rfcommChannel
data:(void *)dataPointer length:(size_t)dataLength ).
I tried to wait with a NSConditionLock, but it seems to block
completely the thread. I saw in the archives that I should use a "run
loop"??? But I see in the ADC documentation that the NSRunLoop has to
have input sources. How can I define an input source that specifically
map on the Bluetooth hardware, so the loop knows what to wait for?
Do I need to manually add the input source, or do the delegate methods
already did that automatically?
Can anybody tell me how to make the run loop works?
Thanks.
luc.
_______________________________________________
bluetooth-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/bluetooth-dev
Do not post admin requests to the list. They will be ignored.