开发者

Listing all connected iDevices in Cocoa [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.

Want to improve this question? Update the question so it focuses on one problem only by editing this post.

Closed 5 years ago.

Improve this question 开发者_开发知识库

I want to implement a sort of backup feature for my backup app, but since I can not do that on the device, I have to do it on the Mac. How would I go about listing the connected iDevices (iPhone and iPod Touch mainly) on the computer? I assume I could go and enumerate through some huge array of all connected USB devices and check for ones that have the Apple vendor code, but I know there's some better way.

I also assume I must use IOKit for this, but I've never worked with it, so I'd appreciate some sample code, and useful tips to point me in the right direction. Then, I'd need to get the device name, and access the files on the device, but I suppose that's gonna be simple after I figure out the device.


You should look into the Disk Arbitration Framework. This (relatively new) framework is being frequently updated to correspond to new hardware advances in the iThing world...

Have fun!

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜