mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 15:11:37 +00:00
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:
parent
44e91238ad
commit
989c7da61f
1 changed files with 2 additions and 2 deletions
|
@ -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 {}
|
||||
|
|
Loading…
Reference in a new issue