Re: Identifying a connected iPod in C or Obj-C
Re: Identifying a connected iPod in C or Obj-C
- Subject: Re: Identifying a connected iPod in C or Obj-C
- From: Bob Ippolito <email@hidden>
- Date: Sun, 25 Jul 2004 13:47:20 -0400
On Jul 25, 2004, at 12:31 PM, Finlay Dobbie wrote:
>
On 25 Jul 2004, at 16:44, Shawn Erickson wrote:
>
>
>> There is apparently a way (based how iPods work with iTunes) to
>
>> identify that a connected device is an iPod versus a standard hard
>
>> drive. Does anyone know if this is something magical or if it is
>
>> just checking for the hidden directories? If it is "magical", would
>
>> anyone happen to know how it's done?
>
>
>
> Well a few different ways exits. If the iPod gets mounted you can
>
> find its file system via normal means.
>
>
The standard way people use is to register for mount notifications and
>
look for "iPod_Control". Apple has a private API which may well be
>
doing more than this, iPod.framework, but unfortunately it's private.
You can also register for firewire notifications. I've been using
IOServiceMatching("com_apple_driver_iPodNub") to find iPods and it's
worked extremely well (though I have seen a few rare bugs where
notifications don't get generated, or multiple iPods end up with the
same GUID, etc.).
Unfortunately the only way to mount an iPod that's not otherwise
mounted is a private CF-style Apple API (iPod.framework)... There's
also a conduit in iSync that wraps iPod.framework with an ObjC
interface.
-bob
[demime 0.98b removed an attachment of type application/pkcs7-signature which had a name of smime.p7s]
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.