realbasic-plugins
[Top] [All Lists]

USB Help, Fundamentals perspective

To: REALbasic Plugins <realbasic-plugins at lists dot realsoftware dot com>
Subject: USB Help, Fundamentals perspective
From: DeanG <goodmansond at gmail dot com>
Date: Fri, 3 Feb 2006 17:02:03 -0600
Delivered-to: realbasic-plugins at lists dot realsoftware dot com
Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=NvLBaYe/HQY5OMN49rv2P13hv8aaxOdbSSneGRzwSlmJgIXJmo3+y5MQjnYI+k4L4IsCIeLxUj8EsS3nMvFfBKCca49IGMgBg25F3FAvo1g8ffUV+NnOnSFlIyGzHizmaNziiCDTSKxm7EiJGwGHeYl+G79B3Uucv8DTUMlyG9o=
I've been digging at docs and for writing a plug-in for my own USB
integration, focusing on attach/detach notification.  (Later I'll
delve into the IOUSBHid nuances for non-standard HID device)

Part I:
I'm looking to perform similar functin in an RB for the following sample:

http://developer.apple.com/samplecode/USBPrivateDataSample/listing1.html

I expect I'll need to do this in a plug-in.  If Declare's will get me
there, I'm all ears.

My app is a OS X daemon app. (ServiceApplication)

I'm stumped on the RunLoop integration:

    CFRunLoopRef  gRunLoop = CFRunLoopGetCurrent();
    CFRunLoopAddSource(gRunLoop, runLoopSource, kCFRunLoopDefaultMode);

Can I trust this call within my plugin from either the main or child RB thread?

(Before you declare "just try it", that's the plan,  and I'vee been
holding this post until today's discussion on the regular list came up
about pure RB usb HID opportunities...thus want to get the
conversation going and continue from that discussion which seemed to
be TWAIN orientated.)

Thanks in advance.
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>


<Prev in Thread] Current Thread [Next in Thread>