MSMutableProtectedData synchronizeFile method

Causes all in-memory data and attributes of the file represented by the receiver to be written to persistent storage. This method should be invoked by apps that require the file to always be in a known state. An invocation of this method does not return until memory is flushed.

Signature

- (void)synchronizeFile;

Defined in

MSMutableProtectedData.h

Supported Platforms

Minimum supported OS version
iOS 7.0 and OS X 10.8

Remarks

Because protection finalizes its state by calling the close function, any remaining data smaller than the block size will not be flushed.