• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
how to map run loop input sources to specific hardware?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


  • Follow-Ups:
    • Re: how to map run loop input sources to specific hardware?
      • From: Eric Brown <email@hidden>
  • Prev by Date: Reproducable System-Crash
  • Next by Date: Re: how to map run loop input sources to specific hardware?
  • Previous by thread: Reproducable System-Crash
  • Next by thread: Re: how to map run loop input sources to specific hardware?
  • Index(es):
    • Date
    • Thread