Sorry if this has been posted before, I searched but could not get any suitable results.
I am trying to modify an application written in Mac OS Cocca / Objective C that is functionally similar to the Demo application for windows that is supplied with the K8055. The way I am trying to modify it is, when a digital input is triggered, the application will simulate a button on the keyboard being pressed.
I am able to simulate a key being pressed, however when the program compiles successfully, it usually has a logic error or every digital input acts as the same button.
I can write the application from scratch perfectly using VB.net 2008, but not Cocca as this is my first experience with it. I know it’s a very simple thing to do, but I cannot get my head around it.
Hello stiff,
unfortunately I cannot help you with your problem because I’m also a beginning Cocoa-programmer.
I’m teachings physics at a German high school, and my students and me want to use the k8055-‘hexten-program’ to control technical stuff. I have now the problem that the program runs, but the k8055 is not found. The USBTest-Terminal program included in Andy’s software says:
"Last login: Sat Jul 18 18:22:05 on ttys000
dieter-schmidts-macbook:~ Pauker$ /Users/Pauker/Documents/Programmierung/Lab-Interfaces/K8055/K8055-ControlStuffWithYourMac/build/Debug/USBTest ; exit;
Available devices: 00
2009-07-18 18:34:53.588 USBTest[1057:10b] *** Terminating app due to uncaught exception ‘NSGenericException’, reason: ‘Device 0 unavailable’
2009-07-18 18:34:53.590 USBTest[1057:10b] Stack: (
2478297259,
2439511611,
2478296715,
2478296778,
11945,
14894,
9722
)
Trace/BPT trap
logout
[Prozess beendet]"
This although the device is plugged in and works. I controlled the function of the K8055 with a C(++)-program, but I don’t want to deal with C(++) since Objective-C and Cocoa seem easier to me as a parttime developer.
Please let me know what you had to do to make the program working. I tried this an a macbook and a powerbook with 10.5.7 and Xcode 3.1.3.
Thanks
Dieter
your code appears to be looking for card 0, so make sure the jumpers are set on your K8055 so it comes up as card 0. Or change your code to look for whatever number your K8055 is set to.
make sure you have not installed any K8055 kexts. I don’t know much about the kexts however if you install one, I think your K8055 will not appear as a HID device, instead comming up as something else. I don’t think that this is the case because you are able to connect using C++.
Hello,
I tried all of your proposals yesterday before I posted, that is to remove all the .kext-files and to check all of the possible devices.
But what shall I say: It works now, and the reason probably is that I did not restarted the computer yesterday.
Thanks anyways
Dieter