23 #import <Foundation/NSObject.h>
25 @class NSImage, NSString, NSError;
28 FileOpenCannotHandle = -1,
34 FileImportCannotHandle = -1,
49 - (BOOL) canCreateCategoriesAtPath: (NSString *) aPath;
55 - (BOOL) canCreatePlainFilesAtPath: (NSString *) aPath;
61 - (BOOL) canCreateLinksAtPath: (NSString *) aPath;
67 - (BOOL) canCreateVirtualFilesAtPath: (NSString *) aPath;
73 - (BOOL) canDeletePath: (NSString *) aPath;
85 - (FileOpenResult) openFile: (NSString *) aPath;
97 - (NSString *) pathToFile: (NSString *) aPath isCategory: (BOOL) isCategory;
104 - (NSImage *) iconForPath: (NSString *) aPath;
111 - (NSArray *) permissibleFileExtensionsInCategory: (NSString *) aCategory;
130 - (FileImportResult) importFile: (NSString *) aFile
131 intoCategory: (NSString *) aCategory
132 error: (NSError **) error;
180 - (NSString *) pathToFileTemplatesDirectoryForCategory: (NSString *) aCategory;
197 - (NSDictionary *) filesAssociatedWithTemplateFile: (NSString *) aFile
198 fromTemplatesDirectory: (NSString *) templatesDir
199 forCategory: (NSString *) targetCategory;
void addEntryAtPath:ofType:withArgument:(NSString *aPath,[ofType] NSString *fileType,[withArgument] NSString *anArgument)
Adds an entry at ‘aPath’ with the file type set to ‘aFileType’.
Definition: FileManager.m:748
Definition: ProjectDocument.h:43
BOOL regenerateDerivedFiles()
Sent to the project module when it is to regenerate it's derived files which are generated from other...
unsigned long long measureDiskUsageAtPath:(NSString *aPath)
Measures the disk usage of files at and under path ‘aPath’.
Definition: FileManager.m:1682
NSDictionary * infoDictionary()
Instructs the project module to return an archivable version of it's data that it wishes to be saved ...
NSArray * moduleMenuItems()
Should return an array of NSMenuItem's which will be put into the module's submenu.
BOOL openFile:inCodeEditorOnLine:(NSString *aPath,[inCodeEditorOnLine] int aLine)
Opens a specified file in a code editor (either the internal code editor, or an external one,...
Definition: ProjectDocument.m:596
NSString * recursivelyLocateFileAtPhysicalPath:inCategory:(NSString *diskLocation,[inCategory] NSString *aCategory)
This method recursively searches for a file based on it's physical on-disk location in a certain cate...
Definition: FileManager.m:872
NSMutableArray * categoryContentsArrayAtPath:(NSString *aPath)
Returns the contents array of the category at path ‘aPath’.
Definition: FileManager.m:682
Definition: FileManager.m:216
NSString * containingCategory()
Returns a path to the category which contains the current selection.
Definition: FileManager.m:1392
BOOL importFile:renameTo:toPath:link:error:(NSString *filePath,[renameTo] NSString *aNewName,[toPath] NSString *category,[link] BOOL linkFlag,[error] NSError **error)
Imports a specified on-disk file into the project.
Definition: FileManager.m:1815
NSArray * filesAtPath:(NSString *category)
Lists the files contained in the category at path ‘category’.
Definition: FileManager.m:1651
Definition: TemplateFileSelector.h:37
This protocol declares what methods should be implemented by a FileManager delegate object.
Definition: FileManagerDelegate.h:43
NSArray * selectedFiles()
Returns the paths to the files that are currently selected, otherwise nil.
Definition: FileManager.m:1373
void finishInit()
Finishes the initialization process of the project module.
Definition: ProjectBrowser.h:30
void setProjectName:(NSString *aName)
Sets a new project name.
Definition: ProjectDocument.m:485
Definition: FileManager.h:92
void removeEntryAtPath:(NSString *aPath)
Removes a file system dictionary entry.
Definition: FileManager.m:774
NSString * moduleName()
Should return a unique module identifier name.
NSArray * toolbarItemIdentifiers()
A module should return the default toolbar item identifiers for it's toolbar.
NSString * targetOfLinkAtPath:(NSString *aPath)
Queries the target of the link at path ‘aPath’.
Definition: FileManager.m:1672