Re: CFRunLoopRun
Re: CFRunLoopRun
- Subject: Re: CFRunLoopRun
- From: Darkshadow <email@hidden>
- Date: Sun, 27 Mar 2005 05:59:07 -0500
On Mar 27, 2005, at 1:52 AM, Ian was here wrote:
I have a custom made device that I'm plugging into the
USB port. I am using CFRunLoopRun() to get info about
the device. I do get the info from the device, but
then I immediately drop out of the loop. Accoring to
Apple's documentation, this should never happen. The
CFRunLoopRun() can only be exited with a
CFRunLoopStop().
Has anyone had any experience with this?
You need to add a source to the run loop for it to monitor, or else it
will exit. I would guess that once you get your info, that source is
being removed from the run loop, so now the run loop has nothing else
to monitor and stops. You can probably stop that by adding the source
back to the the run loop whenever you get device information from it.
Darkshadow (aka Michael Nickerson)
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
References: | |
| >CFRunLoopRun (From: Ian was here <email@hidden>) |