• 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
Re: NSMovie to/from NSData
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: NSMovie to/from NSData
      • From: "M. Uli Kusterer" <email@hidden>
  • Prev by Date: Re: Odd DO Problem...
  • Next by Date: Re: [APP IDEA] Desktop Background Scripting
  • Previous by thread: Re: NSMovie to/from NSData
  • Next by thread: Re: NSMovie to/from NSData
  • Index(es):
    • Date
    • Thread