• 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: The Karl Adam <email@hidden>
  • Date: Wed, 2 Feb 2005 07:23:29 -0500

Yes, the alternate method would be through the Carbon PasteBoard
Manager by getting the Drag flavor for the 'itun' OSType.


On Wed, 2 Feb 2005 03:28:48 -0500, Kevin Ballard <email@hidden> wrote:
> 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
>
>
>
 _______________________________________________
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

References: 
 >Re: Drag from iTunes (From: Lorenzo <email@hidden>)
 >Re: Drag from iTunes (From: Kevin Ballard <email@hidden>)

  • Prev by Date: Re: How to change the z-order of the NSView
  • Next by Date: Subclassing NSScriptClassDescription...
  • Previous by thread: Re: Drag from iTunes
  • Next by thread: Re: Drag from iTunes
  • Index(es):
    • Date
    • Thread