e-CryptIt Engine Xojo Plugin

MacBinary.OnNameIsKnown Event

This event is fired if DefaultLocation was set to False in the Decode Method.
It is fired as soon as the file name of the original file is known.
It allows you to modify the file name and its location before it is written to disk.

OnNameIsKnown(
   OutFile as FolderItem)

Parameters

OutFile
The location and name of the output file.

Remarks

WARNING
Do not directly change the OutFile parameter in the OnNameIsknown event.
If you directly modify the OutFile, REALbasic folder items might change the name of an already existing file !

Don't do:
OutFile.Name = OutFile.Name + "New"
Do it this way:
SetLocation OutFile.Parent.Child("OutFile.Name" + "New")

See Also

MacBinary Class