Re: NSMovie to/from NSData
Re: NSMovie to/from NSData
- Subject: Re: NSMovie to/from NSData
- From: "M. Uli Kusterer" <email@hidden>
- Date: Sun, 25 Jan 2004 19:04:43 +0100
At 16:28 Uhr +0100 25.01.2004, Lorenzo wrote:
Sorry but what you said didn't work. Any time I try to save the move as
NSData I get a 28KB file all the time (the original was 4MB).
And QT cannot open it. I did:
You asked how to turn an NSMovie into a file.
NSMovie != QuickTime movie
If you want to write a QuickTime movie to a file, you have to get the
actual movie out of the NSMovie (data type Movie) and then use the
plain C QuickTime APIs to actually create the file.
This is a little awkward, BTW, because last I checked QuickTime still
didn't know about POSIX paths, FSRefs or CFURLRefs, which means you
have to create an FSSpec for the file (maximum name length: 31
characters) and then hand that to QuickTime.
--
Cheers,
M. Uli Kusterer
------------------------------------------------------------
"The Witnesses of TeachText are everywhere..."
http://www.zathras.de
_______________________________________________
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.