ftp.nice.ch/pub/next/developer/resources/classes/FileSaverAndRetriever.README

This is the README for FileSaverAndRetriever.s.tar.gz [Download] [Browse] [Up]

FileRetriever

CLASS DESCRIPTION

A FileRetriever is an object that performs most of the steps needed to allow a user to open a file and read data from it.  It has an open: method which performs the action for the standard Open menu choice.  Methods are also provided for saving files programmatically (see open, setFilname: and setDirectory:).

A FileRetriever must have a dataDelegate which implements the readDataFromStream: method.  It is the responsibility of the dataDelegate to read the data from the stream provided as an argument to this method.  A FileRetriever may also have a delegate, which will receive the dataWasRead:success:errorCode message informing the delegate whether or not the data was successfully read from the file.  An associated FileSaver instance is also optional.



FileSaver

CLASS DESCRIPTION

A FileSaver is an object that performs most of the steps needed to allow a user to save data to a file.  It has save: and saveAs: methods which perform the actions for the standard Save and Save As menu choices.   Methods are also provided for saving files programmatically (see save, setFilname: and setDirectory:).  

A FileSaver must have a dataDelegate which implements the writeDataToStream: method.  It is the responsibility of the dataDelegate to write the data to be saved to the stream provided as an argument to this method.  A FileSaver may also have a delegate, which will receive the message dataWasWritten:success:errorCode: informing the delegate as to whether or not the data was successfully saved.   An associated FileRetriever instance is also optional.

These are the contents of the former NiCE NeXT User Group NeXTSTEP/OpenStep software archive, currently hosted by Netfuture.ch.