• 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
Drag types from iTunes
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Drag types from iTunes


  • Subject: Drag types from iTunes
  • From: David Watanabe <email@hidden>
  • Date: Sun, 3 Mar 2002 03:05:20 -0800

Does anyone know how to receive drags from iTunes in an NSView? It must be possible, since the Finder receives drags from iTunes. The problem is, obviously, figuring out what drag types to register the NSView to receive. (Why there is no way to register for all drag types is beyond me).

In any case, I've tried registering for every defined NS*Type. Investigation into the types iTunes uses when copying (not dragging) yields the types below. Even though the NSStringPboardType looks promising, it's doesn't work (and again, this is copying, and not dragging). Even if I register for any of the obscure types like "CorePasteboardFlavorType 0x75747874", I still cannot receive drags.

So, does anyone have any idea??

Thanks,
Dave

[[NSPasteboard generalPasteboard] types] yields the following after copying an item in iTunes:

<CFArray 0x2391c00 [0x8016024c]>{type = mutable-small, count = 6, values = (
0 : <CFString 0x238b340 [0x8016024c]>{contents = "CorePasteboardFlavorType 0x75747874"}
1 : <CFString 0x2391c20 [0x8016024c]>{contents = "NeXT plain ascii pasteboard type"}
2 : <CFString 0x2391c50 [0x8016024c]>{contents = "CorePasteboardFlavorType 0x54455854"}
3 : <CFString 0x2391c90 [0x8016024c]>{contents = "Apple CorePasteboard Fallback Text Script"}
4 : NSStringPboardType
5 : NSStringPboardType
)

Dave Watanabe
sciforums.com | webfansite.com | xlife.org
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: Drag types from iTunes
      • From: email@hidden
    • Re: Drag types from iTunes
      • From: email@hidden
  • Prev by Date: Re: The SampleCMPlugin example
  • Next by Date: Drawing into an NSImage?
  • Previous by thread: Re: NSControl with NSCells (Really: EOF request)
  • Next by thread: Re: Drag types from iTunes
  • Index(es):
    • Date
    • Thread