getting movies into pasteboards
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.