• 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
getting movies into pasteboards
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

getting movies into pasteboards


  • Subject: getting movies into pasteboards
  • From: Pete Carss <email@hidden>
  • Date: Fri, 16 May 2003 17:49:23 +0100

I having trouble passing movies though my app via drag and drop. I have no problems referring to movies that originate in files via NSURL. The problem comes with instances of NSMovie that created from NSMovieView's copy method. These don't have valid urls. I can pass them to my dragging source, but when this needs to pass it to the clipboard - well I haven't got that far yet. I'd post some code, but I haven't got any yet. I've tried playing with NSData, and I found that NSMovie's copy method was putting a "CorePasteboardFlavorType 0x6D6F6F76" on the pasteboard, so I tried:

[pboard declareTypes:[NSMovie movieUnfilteredPasteboardTypes] owner: nil];
NSLog(@"valid pasteboard types: %@", [NSMovie movieUnfilteredPasteboardTypes]);
NSData* data=[NSArchiver archivedDataWithRootObject:[[movieEditingController _movies] objectAtIndex: [row intValue]]];
[pboard setData: data forType: @"CorePasteboardFlavorType 0x6D6F6F76"];
NSLog(@"movie written to pasteboard: %@", [pboard types]);
return YES;

but no joy...

anybody have any success with this

Pete
_______________________________________________
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.

  • Prev by Date: Re: Future Objective-C changes
  • Next by Date: [Q] How do I Create an NSEvent Using Runtime Functions?
  • Previous by thread: Re: NSImage cell tanking (and slow NSTableView)
  • Next by thread: [Q] How do I Create an NSEvent Using Runtime Functions?
  • Index(es):
    • Date
    • Thread