Re: Drag from iTunes
Re: Drag from iTunes
- Subject: Re: Drag from iTunes
- From: Kevin Ballard <email@hidden>
- Date: Wed, 2 Feb 2005 03:28:48 -0500
Why would you expect any of the first 4 to work? The atom 'itun' is an
OSType - it compiles into a long composed of the hex values of each
char (i.e. 0x6974756E). Embedding it in a string just gives you the
string 'itun'. And of course the 4th wouldn't work, since you'd be
giving it an OSType instead of an NSString. The last works because
that's the actual CorePasteboardFlavorType being used.
I don't know if there's any other official method of getting the
pasteboard for 'itun' aside from using "CorePasteboardFlavorType
0x6974756E". If there is, it might be Carbon (which I have no knowledge
of).
Anybody else have a clue?
On Feb 2, 2005, at 3:18 AM, Lorenzo wrote:
Thank you. I tried to do
NSDictionary *iTunesDict = [pboard
propertyListForType:@"CorePasteboardFlavorType 'itun'"];
and also
NSDictionary *iTunesDict = [pboard
propertyListForType:@"CorePasteboardFlavorType itun"];
and also
NSDictionary *iTunesDict = [pboard
propertyListForType:@"'itun'"];
and also
NSDictionary *iTunesDict = [pboard
propertyListForType:'itun']; // (not allowed)
but it didn't work. Which syntax should I use?
Instead the following code works well:
NSDictionary *iTunesDict = [pboard
propertyListForType:@"CorePasteboardFlavorType 0x6974756E"];
--
Kevin Ballard
email@hidden
http://www.tildesoft.com
http://kevin.sb.org
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
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