mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-30 13:20:38 +00:00
* NSFileWrapper.m and NSFileWrapper.h added preliminary implementations
in support of Daniel B�hringer's work on the text classes * NSText.m added changes by Daniel B�hringer * Tools/gpbs.m added dummy defines of some backend function git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@2952 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
601cac5d1b
commit
c5d8b82392
8 changed files with 1876 additions and 305 deletions
219
Source/NSFileWrapper.m
Normal file
219
Source/NSFileWrapper.m
Normal file
|
@ -0,0 +1,219 @@
|
|||
/*
|
||||
NSFileWrapper.m
|
||||
|
||||
NSFileWrapper objects hold a file's contents in dynamic memory.
|
||||
|
||||
Copyright (C) 1996 Free Software Foundation, Inc.
|
||||
|
||||
Author: Felipe A. Rodriguez <far@ix.netcom.com>
|
||||
Date: Sept 1998
|
||||
|
||||
This file is part of the GNUstep GUI Library.
|
||||
|
||||
This library is free software; you can redistribute it and/or
|
||||
modify it under the terms of the GNU Library General Public
|
||||
License as published by the Free Software Foundation; either
|
||||
version 2 of the License, or (at your option) any later version.
|
||||
|
||||
This library is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
Library General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Library General Public
|
||||
License along with this library; see the file COPYING.LIB.
|
||||
If not, write to the Free Software Foundation,
|
||||
59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
*/
|
||||
|
||||
#include <gnustep/gui/config.h>
|
||||
|
||||
#include <AppKit/NSFileWrapper.h>
|
||||
#include <AppKit/NSFont.h>
|
||||
|
||||
|
||||
@implementation NSFileWrapper
|
||||
|
||||
//
|
||||
// Initialization
|
||||
//
|
||||
// Init instance of directory type
|
||||
- (id)initDirectoryWithFileWrappers:(NSDictionary *)docs
|
||||
{
|
||||
return nil;
|
||||
}
|
||||
// Init instance of regular file type
|
||||
- (id)initRegularFileWithContents:(NSData *)data
|
||||
{
|
||||
return nil;
|
||||
}
|
||||
// Init instance of symbolic link type
|
||||
- (id)initSymbolicLinkWithDestination:(NSString *)path
|
||||
{
|
||||
return nil;
|
||||
}
|
||||
// Init an instance from the file,
|
||||
// directory, or symbolic link at path.
|
||||
// This can create a tree of instances
|
||||
- (id)initWithPath:(NSString *)path // with a directory instance at the top
|
||||
{
|
||||
return nil;
|
||||
}
|
||||
// Init an instance from data in std
|
||||
// serial format. Serial format is the
|
||||
// same as that used by NSText's
|
||||
// RTFDFromRange: method. This can
|
||||
// create a tree of instances with a
|
||||
// directory instance at the top
|
||||
- (id)initWithSerializedRepresentation:(NSData *)data
|
||||
{
|
||||
return nil;
|
||||
}
|
||||
|
||||
//
|
||||
// General methods
|
||||
// // write instace to disk
|
||||
- (BOOL)writeToFile:(NSString *)path // at path. if directory
|
||||
atomically:(BOOL)atomicFlag // type, this method is
|
||||
updateFilenames:(BOOL)updateFilenamesFlag // recursive, if flag is
|
||||
{ // YES the wrapper will be
|
||||
return NO; // updated with the name
|
||||
} // used in writing the file
|
||||
|
||||
- (NSData *)serializedRepresentation
|
||||
{
|
||||
return nil;
|
||||
}
|
||||
|
||||
- (void)setFilename:(NSString *)filename
|
||||
{
|
||||
}
|
||||
|
||||
- (NSString *)filename
|
||||
{
|
||||
return nil;
|
||||
}
|
||||
|
||||
- (void)setPreferredFilename:(NSString *)filename
|
||||
{
|
||||
}
|
||||
|
||||
- (NSString *)preferredFilename;
|
||||
{
|
||||
return nil;
|
||||
}
|
||||
|
||||
- (void)setFileAttributes:(NSDictionary *)attributes
|
||||
{
|
||||
}
|
||||
|
||||
- (NSDictionary *)fileAttributes
|
||||
{
|
||||
return nil;
|
||||
}
|
||||
|
||||
- (BOOL)isRegularFile
|
||||
{
|
||||
return NO;
|
||||
}
|
||||
|
||||
- (BOOL)isDirectory
|
||||
{
|
||||
return NO;
|
||||
}
|
||||
|
||||
- (BOOL)isSymbolicLink
|
||||
{
|
||||
return NO;
|
||||
}
|
||||
|
||||
- (void)setIcon:(NSImage *)icon
|
||||
{
|
||||
}
|
||||
|
||||
- (NSImage *)icon;
|
||||
{
|
||||
return nil;
|
||||
}
|
||||
|
||||
- (BOOL)needsToBeUpdatedFromPath:(NSString *)path
|
||||
{
|
||||
return NO;
|
||||
}
|
||||
|
||||
- (BOOL)updateFromPath:(NSString *)path
|
||||
{
|
||||
return NO;
|
||||
}
|
||||
|
||||
//
|
||||
// Directory type methods
|
||||
//
|
||||
- (NSString *)addFileWrapper:(NSFileWrapper *)doc
|
||||
{
|
||||
return nil;
|
||||
}
|
||||
|
||||
- (void)removeFileWrapper:(NSFileWrapper *)doc
|
||||
{
|
||||
}
|
||||
|
||||
- (NSDictionary *)fileWrappers;
|
||||
{
|
||||
return nil;
|
||||
}
|
||||
|
||||
- (NSString *)keyForFileWrapper:(NSFileWrapper *)doc
|
||||
{
|
||||
return nil;
|
||||
}
|
||||
|
||||
- (NSString *)addFileWithPath:(NSString *)path
|
||||
{
|
||||
return nil;
|
||||
}
|
||||
|
||||
- (NSString *)addRegularFileWithContents:(NSData *)data
|
||||
preferredFilename:(NSString *)filename
|
||||
{
|
||||
return nil;
|
||||
}
|
||||
|
||||
- (NSString *)addSymbolicLinkWithDestination:(NSString *)path
|
||||
preferredFilename:(NSString *)filename
|
||||
{
|
||||
return nil;
|
||||
}
|
||||
|
||||
//
|
||||
// Regular file type methods
|
||||
//
|
||||
- (NSData *)regularFileContents
|
||||
{
|
||||
return nil;
|
||||
}
|
||||
|
||||
//
|
||||
// Symbolic link type methods
|
||||
//
|
||||
- (NSString *)symbolicLinkDestination
|
||||
{
|
||||
return nil;
|
||||
}
|
||||
|
||||
//
|
||||
// Archiving
|
||||
//
|
||||
- (void)encodeWithCoder:aCoder
|
||||
{
|
||||
[super encodeWithCoder:aCoder];
|
||||
}
|
||||
|
||||
- initWithCoder:aDecoder
|
||||
{
|
||||
[super initWithCoder:aDecoder];
|
||||
|
||||
return self;
|
||||
}
|
||||
|
||||
@end
|
Loading…
Add table
Add a link
Reference in a new issue