Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Re: FlattenMovie errors
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: FlattenMovie errors



At 6:58 PM -0500 9/21/01, Bob Sabiston wrote:
But that isn't the problem, really. In my application, I use FlattenMovie,
which writes out a QT movie to a file, right? Later, if the user tries to
redo this action--ie, write the exact same file out again--I get errors.

Here are the calls you care about:

FindFolder() -- get the "Temprary Items" folder on the volume you're saving to -- make sure you pass in the correct volume or you can't use FSpExchangeFiles

-- save to a new file in this directory --

FSpExchangeFiles() -- swaps the contents of the new and old files by swapping their directory entries

FSpDelete() -- delete the temp file (which is now the old data)

This is the standard technique for a "safe save" -- at any point deleting the temp file is the only necessary cleanup -- if you forget or crash it will automatically be moved to the trash.

HTH,

-Steve


References: 
 >FlattenMovie errors (From: "Bob Sabiston" <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.