git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@17278 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-Macdonald 2003-07-21 11:59:47 +00:00
parent 9bb801ddb2
commit 0c1073e3ec
3 changed files with 218 additions and 184 deletions

View file

@ -259,7 +259,12 @@ static NSDictionary *TypeInfoForName (NSArray *types, NSString *typeName)
return document;
}
- (id) openDocumentWithContentsOfFile: (NSString *)fileName
/**
* Creates an [NSDocument] object from the data at the absolute path
* given in fileName. Causes the document to be displayed if display
* is YES, unless the -shouldCreateUI method returns NO.
*/
- (id) openDocumentWithContentsOfFile: (NSString*)fileName
display: (BOOL)display
{
NSDocument *document = [self documentForFileName: fileName];
@ -291,6 +296,11 @@ static NSDictionary *TypeInfoForName (NSArray *types, NSString *typeName)
return document;
}
/**
* Creates an [NSDocument] object from the data at the supplied url.<br />
* Causes the document to be displayed if display
* is YES, unless the -shouldCreateUI method returns NO.
*/
- (id) openDocumentWithContentsOfURL: (NSURL *)url display: (BOOL)display
{
// Should we only do this if [url isFileURL] is YES?