Stub implementation

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@14847 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Adam Fedor 2002-10-26 03:35:11 +00:00
parent 24653e2d38
commit bd5048dc2b
3 changed files with 19 additions and 1 deletions

View file

@ -1,10 +1,12 @@
2002-10-25 Adam Fedor <fedor@gnu.org>
* Source/NSApplication.m: Remove some NSDebugLogs.
* Source/NSDocument.m
(-fileNameFromRunningSavePanelForSaveOperation:): Set dicectory to
the currentDirectory if no fileName is set. Localize.
(-fileAttributesToWriteToFile:ofType:saveOperation:): Stib implement.
* Source/NSDocumentController.m: Document.
(+sharedDocumentController): Proper allocation/init. Set ourselves
as the application delegate if there isn't one already.

View file

@ -139,7 +139,8 @@ typedef enum _NSSaveOperationType {
- (BOOL)loadDataRepresentation:(NSData *)data ofType:(NSString *)type;
- (NSFileWrapper *)fileWrapperRepresentationOfType:(NSString *)type;
- (BOOL)loadFileWrapperRepresentation:(NSFileWrapper *)wrapper ofType:(NSString *)type;
- (BOOL)loadFileWrapperRepresentation:(NSFileWrapper *)wrapper
ofType:(NSString *)type;
- (BOOL)writeToFile:(NSString *)fileName ofType:(NSString *)type;
- (BOOL)readFromFile:(NSString *)fileName ofType:(NSString *)type;
@ -154,6 +155,13 @@ typedef enum _NSSaveOperationType {
- (NSString *)fileNameFromRunningSavePanelForSaveOperation:(NSSaveOperationType)saveOperation;
- (int)runModalSavePanel:(NSSavePanel *)savePanel withAccessoryView:(NSView *)accessoryView;
- (NSString *)fileTypeFromLastRunSavePanel;
- (NSDictionary *)fileAttributesToWriteToFile: (NSString *)fullDocumentPath
ofType: (NSString *)docType
saveOperation: (NSSaveOperationType)saveOperationType;
- (BOOL)writeToFile:(NSString *)fileName
ofType:(NSString *)type
originalFile:(NSString *)origFileName
saveOperation:(NSSaveOperationType)saveOp;
- (BOOL)writeWithBackupToFile:(NSString *)fileName
ofType:(NSString *)fileType
saveOperation:(NSSaveOperationType)saveOp;

View file

@ -573,6 +573,14 @@
return [self fileType];
}
- (NSDictionary *)fileAttributesToWriteToFile: (NSString *)fullDocumentPath
ofType: (NSString *)docType
saveOperation: (NSSaveOperationType)saveOperationType
{
// FIXME: Implement.
return [NSDictionary dictionary];
}
- (BOOL)writeToFile:(NSString *)fileName
ofType:(NSString *)type
originalFile:(NSString *)origFileName