Re: NSMovie to/from NSData
Re: NSMovie to/from NSData
- Subject: Re: NSMovie to/from NSData
- From: Lorenzo <email@hidden>
- Date: Sun, 25 Jan 2004 16:28:45 +0100
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:
NSString *moviePath = @"/MySource.mov";
NSURL *movieUrl = [NSURL fileURLWithPath:moviePath];
gNSMovie = [[NSMovie alloc] initWithURL:movieUrl byReference:NO];
if(gNSMovie){
NSData *movieData;
BOOL ok = NO;
movieData = [NSArchiver archivedDataWithRootObject:gNSMovie];
if(movieData && [movieData length] > 0){
BOOL ok = [movieData writeToFile:@"/data.mov" atomically:YES];
}
}
Is something wrong here? Thank you.
Best Regards
--
Lorenzo
email: email@hidden
>
From: Nick Zitzmann <email@hidden>
>
Date: Sun, 25 Jan 2004 02:37:42 -0800
>
To: Lorenzo <email@hidden>
>
Subject: Re: NSMovie to/from NSData
>
>
movieData = [NSArchiver archivedDataWithRootObject:movie];
_______________________________________________
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.