• 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: Lorenzo <email@hidden>
  • Date: Wed, 02 Feb 2005 09:18:49 +0100

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"];


Best Regards
--
Lorenzo
email: email@hidden

> From: Kevin Ballard <email@hidden>
> Date: Tue, 01 Feb 2005 18:20:27 -0500
> To: The Karl Adam <email@hidden>
> Cc: Lorenzo <email@hidden>, email@hidden
> Subject: Re: Drag from iTunes
>
> 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'.
>
> On Feb 1, 2005, at 6:12 PM, The Karl Adam wrote:
>
>> All these types are documented, the hex number corresponds to an the
>> unsigned long long OSType for that flavor. All of these flavors are
>> documented in the Carbon PasteBoard Manager reference that is already
>> on yoru machine. The conversion from OSType to hex I can't recall at
>> the moment, but anyone more knowledgable can step up and fill in that
>> gap.
>>
>> -Karl
>>
>> On Tue, 01 Feb 2005 23:17:36 +0100, Lorenzo <email@hidden> wrote:
>>> Thank you. It worked.
>>> I had already taken a look within the pasterboard with
>>>
>>>     NSArray                    *types = [pboard types];
>>>     NSLog(@"Types %@", [types description]);
>>>
>>> so I have seen the flavours. However, ClipboardViewer did let me see
>>> even
>>> the contents, so it was easier. Thank you so much.
>>>
>>> A question:
>>> The dictionary is within the flavour @"CorePasteboardFlavorType
>>> 0x6974756E"
>>> Could this number 0x6974756E change in the future?
>>> Should I instead use a TYPE like 'itun'? If so, which one (sintax
>>> please).
>
> --
> Kevin Ballard
> email@hidden
> http://www.tildesoft.com
> http://kevin.sb.org
>

 _______________________________________________
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: Kevin Ballard <email@hidden>
References: 
 >Re: Drag from iTunes (From: Kevin Ballard <email@hidden>)

  • Prev by Date: Re: Beginner Questions
  • Next by Date: Re: Drag from iTunes
  • Previous by thread: Re: Drag from iTunes
  • Next by thread: Re: Drag from iTunes
  • Index(es):
    • Date
    • Thread