• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Drag from iTunes
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
  • Follow-Ups:
    • Re: Drag from iTunes
      • From: "M. Uli Kusterer" <email@hidden>
References: 
 >Re: Drag from iTunes (From: The Karl Adam <email@hidden>)
 >Re: Drag from iTunes (From: Lorenzo <email@hidden>)
 >Re: Drag from iTunes (From: The Karl Adam <email@hidden>)
 >Re: Drag from iTunes (From: Kevin Ballard <email@hidden>)

  • Prev by Date: Re: NSView and NSMenuItem not updating displays
  • Next by Date: Lazily Allocate Nib From Menu Via Binding
  • Previous by thread: Re: Drag from iTunes
  • Next by thread: Re: Drag from iTunes
  • Index(es):
    • Date
    • Thread