Re: Drag from iTunes
Re: Drag from iTunes
- Subject: Re: Drag from iTunes
- From: "M. Uli Kusterer" <email@hidden>
- Date: Sat, 5 Feb 2005 19:42:28 +0100
At 18:20 Uhr -0500 01.02.2005, Kevin Ballard wrote:
Content-Type: multipart/signed; micalg=sha1; boundary=Apple-Mail-7-143808978;
protocol="application/pkcs7-signature"
OSType to hex is simply the ASCII value of each char in the OSType.
So 0x6974756E is equivalent to 'itun', since 0x69 is 'i', 0x74 is
't', 0x75 is 'u', and 0x6e is 'n'.
So yes, that type is 'itun'.
Well, at least on systems with the same endian-ness as Windows. If
the endian-ness is different, the characters for the same number will
be reversed, but actually, Carbon relies on the characters staying
the same (I think there's a macro that encodes this right in
ConditionalMacros.h).
It's not very likely that Apple will switch to another endian-ness at
this point in time, but if you have a way to encode the whole thing
as 'itun' instead of as the hex number, that will probably end up
being more correct.
I'm pretty sure there's an NSHFSTypeToString() and reverse function
pair in Cocoa. Maybe there's an analog for Drag Flavors?
--
Cheers,
M. Uli Kusterer
------------------------------------------------------------
"The Witnesses of TeachText are everywhere..."
http://www.zathras.de
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden