archive |
( BOOL ) archive:
(MPQArchive *) archive shouldAddFile :
(NSString *) file;
This method is invoked when adding a file to the archive but prior to that file being actually compressed and written in the MPQ archive file. Return YES to permit the addition or NO to cancel it. Note that the new file will be accessible right after the addition method returns (if it was sucessfull). However, the data of the file will be read from the original file on disk until the archive is saved, at which time the delegate will be notified that the file is being compressed (if compression was specified) and added to the MPQ archive file.
archive |
( void ) archive:
(MPQArchive *) archive willAddFile :
(NSString *) file;
This method is called for each file pending for addition in the archive being saved. This method is invoked after archiveWillSave: but prior to archiveDidSave:.
archive |
( void ) archive:
(MPQArchive *) archive didAddFile :
(NSString *) file;
This message is sent regardless if the file was compressed or not, encrypted or not.
archive |
( BOOL ) archive:
(MPQArchive *) archive shouldDeleteFile :
(NSString *) file;
Return YES to permit the addition or NO to cancel it.
archive |
( void ) archive:
(MPQArchive *) archive willDeleteFile :
(NSString *) file;
This method is invoked after archive:shouldDeleteFile:. Note that unlike file addition and renaming, archive:willDeleteFile: and archive:didDeleteFile: are not invoked when the archive is saved, but rather immediately before and after the delete file method is invoked respectively. This is because no extra operation is performed at save time for deletion, unlike addition and renaming. Note however that deletion is undoable until the archive is saved.
archive |
( void ) archive:
(MPQArchive *) archive didDeleteFile :
(NSString *) file;
Note that unlike file addition and renaming, archive:willDeleteFile: and archive:didDeleteFile: are not invoked when the archive is saved, but rather immediately before and after the delete file method is invoked respectively. This is because no extra operation is performed at save time for deletion, unlike addition and renaming. Note however that deletion is undoable until the archive is saved.
archive |
( BOOL ) archive:
(MPQArchive *) archive shouldRenameFile :
(NSString *) file as :
(NSString *) newFile;
This method is invoked when renaming a file of the archive but prior to that file being actually re-encrypted and re-written in the MPQ archive file. Return YES to permit the rename or NO to cancel it. Note that the file will be accessible right after the rename method returns (if it was sucessfull) as the new name. The delegate will be notified that the file is being re-processed at save time.
archive |
( void ) archive:
(MPQArchive *) archive willRenameFile :
(NSString *) file as :
(NSString *) newFile;
This method is called for each file pending for renaming in the archive being saved. This method is invoked after archiveWillSave: but prior to archiveDidSave:.
archive |
( void ) archive:
(MPQArchive *) archive didRenameFile :
(NSString *) file as :
(NSString *) newFile;
It is safe to use the new name as soon as this message is sent.
archive |
( BOOL ) archive:
(MPQArchive *) archive shouldOpenFile :
(NSString *) file;
Return YES to permit the file to be opened or NO to prevent it.
archive |
( void ) archive:
(MPQArchive *) archive willOpenFile :
(NSString *) file;
This method is invoked after archive:shouldOpenFile:.
archive |
( void ) archive:
(MPQArchive *) archive didOpenFile :
(NSString *) file;
Will not be called if file opening is cancelled or failed.
archive:didAddFile: |
( void ) archive:
(MPQArchive *) archive didAddFile :
(NSString *) file;
This message is sent regardless if the file was compressed or not, encrypted or not.
- archive
- The archive in which the file was added.
- file
- The MPQ path of the file that was added.
archive:didDeleteFile: |
( void ) archive:
(MPQArchive *) archive didDeleteFile :
(NSString *) file;
Note that unlike file addition and renaming, archive:willDeleteFile: and archive:didDeleteFile: are not invoked when the archive is saved, but rather immediately before and after the delete file method is invoked respectively. This is because no extra operation is performed at save time for deletion, unlike addition and renaming. Note however that deletion is undoable until the archive is saved.
- archive
- The archive from which file was deleted.
- file
- The MPQ path of the file that was deleted.
archive:didOpenFile: |
( void ) archive:
(MPQArchive *) archive didOpenFile :
(NSString *) file;
Will not be called if file opening is cancelled or failed.
- archive
- The archive from which file was deleted.
- file
- The MPQ path of the file that was deleted.
archive:didRenameFile:as: |
( void ) archive:
(MPQArchive *) archive didRenameFile :
(NSString *) file as :
(NSString *) newFile;
It is safe to use the new name as soon as this message is sent.
- archive
- The archive in which the renamed file is stored.
- file
- The MPQ path of the file that was renamed.
- newFile
- The new MPQ path of the file that was renamed.
archive:shouldAddFile: |
( BOOL ) archive:
(MPQArchive *) archive shouldAddFile :
(NSString *) file;
This method is invoked when adding a file to the archive but prior to that file being actually compressed and written in the MPQ archive file. Return YES to permit the addition or NO to cancel it. Note that the new file will be accessible right after the addition method returns (if it was sucessfull). However, the data of the file will be read from the original file on disk until the archive is saved, at which time the delegate will be notified that the file is being compressed (if compression was specified) and added to the MPQ archive file.
- archive
- The archive in which the file will be added.
- file
- The MPQ path of the file that is about to be added.
archive:shouldDeleteFile: |
( BOOL ) archive:
(MPQArchive *) archive shouldDeleteFile :
(NSString *) file;
Return YES to permit the addition or NO to cancel it.
- archive
- The archive in which file will be deleted.
- file
- The MPQ path of the file that is about to be deleted.
archive:shouldOpenFile: |
( BOOL ) archive:
(MPQArchive *) archive shouldOpenFile :
(NSString *) file;
Return YES to permit the file to be opened or NO to prevent it.
- archive
- The archive containing the file that is about to be opened.
- file
- The MPQ path of the file that is about to be opened.
archive:shouldRenameFile:as: |
( BOOL ) archive:
(MPQArchive *) archive shouldRenameFile :
(NSString *) file as :
(NSString *) newFile;
This method is invoked when renaming a file of the archive but prior to that file being actually re-encrypted and re-written in the MPQ archive file. Return YES to permit the rename or NO to cancel it. Note that the file will be accessible right after the rename method returns (if it was sucessfull) as the new name. The delegate will be notified that the file is being re-processed at save time.
- archive
- The archive in which the file to be renamed is stored.
- file
- The MPQ path of the file that is about to be renamed.
- newFile
- The new MPQ path of the file that is about to be renamed.
archive:willAddFile: |
( void ) archive:
(MPQArchive *) archive willAddFile :
(NSString *) file;
This method is called for each file pending for addition in the archive being saved. This method is invoked after archiveWillSave: but prior to archiveDidSave:.
- archive
- The archive in which the file will be added.
- file
- The MPQ path of the file that is about to be added.
archive:willDeleteFile: |
( void ) archive:
(MPQArchive *) archive willDeleteFile :
(NSString *) file;
This method is invoked after archive:shouldDeleteFile:. Note that unlike file addition and renaming, archive:willDeleteFile: and archive:didDeleteFile: are not invoked when the archive is saved, but rather immediately before and after the delete file method is invoked respectively. This is because no extra operation is performed at save time for deletion, unlike addition and renaming. Note however that deletion is undoable until the archive is saved.
- archive
- The archive from which file will be deleted.
- file
- The MPQ path of the file that is about to be deleted.
archive:willOpenFile: |
( void ) archive:
(MPQArchive *) archive willOpenFile :
(NSString *) file;
This method is invoked after archive:shouldOpenFile:.
- archive
- The archive containing the file that is about to be opened.
- file
- The MPQ path of the file that is about to be opened.
archive:willRenameFile:as: |
( void ) archive:
(MPQArchive *) archive willRenameFile :
(NSString *) file as :
(NSString *) newFile;
This method is called for each file pending for renaming in the archive being saved. This method is invoked after archiveWillSave: but prior to archiveDidSave:.
- archive
- The archive in which the file to be renamed is stored.
- file
- The MPQ path of the file that is about to be renamed.
- newFile
- The new MPQ path of the file that is about to be renamed.
archiveDidSave |
( void ) archiveDidSave:
(MPQArchive *) archive;
archiveDidSave: will not be sent to the delegate if the save operation failed.
archiveDidSave: |
( void ) archiveDidSave:
(MPQArchive *) archive;
archiveDidSave: will not be sent to the delegate if the save operation failed.
- archive
- The archive that did save.
archiveShouldSave |
( BOOL ) archiveShouldSave:
(MPQArchive *) archive;
Return YES in this delegate to perform the save operation, or NO to cancel the save operation.
archiveShouldSave: |
( BOOL ) archiveShouldSave:
(MPQArchive *) archive;
Return YES in this delegate to perform the save operation, or NO to cancel the save operation.
- archive
- The archive that is about to be saved.
archiveWillSave |
( void ) archiveWillSave:
(MPQArchive *) archive;
This message is always sent if the delegate implements it.
archiveWillSave: |
( void ) archiveWillSave:
(MPQArchive *) archive;
This message is always sent if the delegate implements it.
- archive
- The archive that is about to be saved.
(Last Updated 5/8/2004)