In [close] use removeDocument instead of _removeDocument.

[initWithContentsOfFile:ofType:] call [self init] instead of
[super init].


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@7798 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Fred Kiefer 2000-10-12 23:00:09 +00:00
parent 44e91238ad
commit 989c7da61f

View file

@ -75,7 +75,7 @@
- (id)initWithContentsOfFile:(NSString *)fileName ofType:(NSString *)fileType
{
[super init];
[self init];
if ([self readFromFile:fileName ofType:fileType])
{
@ -628,7 +628,7 @@
{
// We have an _docFlags.inClose flag, but I don't think we need to use it.
[_windowControllers makeObjectsPerformSelector:@selector(close)];
[[NSDocumentController sharedDocumentController] _removeDocument:self];
[[NSDocumentController sharedDocumentController] removeDocument:self];
}
- (void)windowControllerWillLoadNib:(NSWindowController *)windowController {}