detecting and displaying usb camera in Mac OSX - objective-c

I am wondering how to detect any webcam connected to my mac and display it on my Mac OSX application? should i do a path search for /dev connected devices? and if so, how would i come to read output from the port or activate the foreign camera?

You should be working with high-level APIs for this. If you're targetting OS X 10.7 and later, use AVFoundation's AVCaptureSession class. If you need to support Mac OS X 10.6 and earlier, use QuickTime's QTCaptureDevice class. Both are well-documented on http://developer.apple.com/mac/.

Related

Does an HID device need libusbx Windows backend driver on Windows 7?

Current status:
I have developed some USB based device and have developed a driver on Linux using libusb. I am now porting the driver to Windows 7.
Device details
My device is a touch screen with two interfaces, one for the OS to communicate with the touch screen and the other for some vendor communication.
Old Stack Overflow post:
libusb_open returns 'LIBUSB_ERROR_NOT_SUPPORTED' on Windows 7
Here I was stuck with a problem that my libusb_open returned with an error. I learnt that I need Windows backend drivers. But I also learnt that it is for devices which are not recognised by the operating system.
Action taken
I tried installing a driver for my device using the Zadig tool, but I am not able to override the driver used by the OS with the new driver.
Do i really need a libusbx Windows backend driver for a device which has been identified and working well on windows 7? (The touch screen works perfect as a multitouch device)
What is the way forward as the device just can't be opened?
If you really use libusbx then you should be able to at least open the device for sure.
Make sure you did not mess the default HID driver for your device while playing with Zadig tool. Go to Control Panel/Device Manager/Hid section (is your device listed there?), search your device and remove the driver. Then try again.

need help for bluetooth framework on mac osx

i'm an iOs developer and I actually need to make a mac application that use bluetooth framework to connect to another device (not iOS device).
I'm actually showing a modal view showing the connected bluetooth device with IOBluetoothDeviceSelectorController and I get the user choice with [modal getResults] but I don't know how to initiate the connection with the selected device and I can't find a simple way to do it on the mac dev library.
is anyone know a tutorial or sample code that could help me advance in my project?
linkos
The Mac Developer Library has two sample Bluetooth projects; connecting to a health thermometer and connecting to a heart rate monitor. There is also video available of the Advanced Core Bluetooth WWDC 2012 session.

How can I transfer data via bluetooth from an iOS device to a Mac?

I want to be able to transfer basic information (strings and such) from an iOS device to a Mac, and vice versa, via apps installed on each device. I've been trying to get bluetooth on the iOS device, but it seems to only want to connect to other iOS devices.
Bluetooth access on the ios is very limited. As a matter of fact you can only access it through the GameKit.
http://developer.apple.com/library/ios/#DOCUMENTATION/NetworkingInternet/Conceptual/GameKit_Guide/Introduction/Introduction.html
So if you want to share information with a Mac you would have to make the mac appear as an iOS device. I however ignore how you could do this.

Notification for internet connection in Mac OS X cocoa application

In my app I want to notify the user for any internet notifications such as switching from ethernet to wifi or no reachability in System it has to automatically notify my app. I know how to do in iphone app using reachability example but the same doesnt work for Mac OS X Cocoa app. How to implement this using Objective-C in my cocoa app?
Reachability exists on Mac just like iOS. Some of the flags are a little different, but the basic approach is the same. See SimpleReach.

Objective c iPhone app and Mac app communication

Is this possible?
I want to be able to press a button on the iPhone app and something happens to the Mac app. Maybe via 3G and wifi.
Any ideas?
Yes, both Mac OS and iOS support numerous network APIs, including CFNetwork. You could use Bonjour to let the iPhone discover the Mac (or vice versa).