mirror of
https://github.com/gnustep/apps-gorm.git
synced 2025-02-23 19:51:00 +00:00
Tidyup
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/gorm/trunk@6113 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
82ff01134f
commit
073d3a759f
4 changed files with 17 additions and 9 deletions
|
@ -1,3 +1,8 @@
|
|||
Fri Feb 25 16:31:00 2000 Richard Frith-Macdonald <richard@brainstorm.co.uk>
|
||||
|
||||
* Gorm.m: Fix a few window deallocation problems.
|
||||
* GormDocument.m: Fix error in renaming objects.
|
||||
|
||||
2000-02-21 Adam Fedor <fedor@gnu.org>
|
||||
|
||||
* GNUmakefile: Don't make Documentation by default for those who
|
||||
|
|
10
Gorm.m
10
Gorm.m
|
@ -269,6 +269,7 @@ NSString *GormLinkPboardType = @"GormLinkPboardType";
|
|||
NSUserDefaults *defs;
|
||||
NSEnumerator *e;
|
||||
id val;
|
||||
CREATE_AUTORELEASE_POOL(pool);
|
||||
|
||||
[nc postNotificationName: IBWillEndTestingInterfaceNotification
|
||||
object: self];
|
||||
|
@ -281,21 +282,17 @@ NSString *GormLinkPboardType = @"GormLinkPboardType";
|
|||
{
|
||||
if ([val isKindOfClass: [NSWindow class]] == YES)
|
||||
{
|
||||
[val setReleasedWhenClosed: YES];
|
||||
[val close];
|
||||
}
|
||||
}
|
||||
DESTROY(testContainer);
|
||||
|
||||
{
|
||||
NSAutoreleasePool *p = [NSAutoreleasePool new];
|
||||
defs = [NSUserDefaults standardUserDefaults];
|
||||
[defs setObject: menuLocations forKey: @"NSMenuLocations"];
|
||||
DESTROY(menuLocations);
|
||||
[p release];
|
||||
}
|
||||
[self setMainMenu: mainMenu];
|
||||
|
||||
DESTROY(testContainer);
|
||||
|
||||
isTesting = NO;
|
||||
|
||||
if ([selectionOwner conformsToProtocol: @protocol(IBEditors)] == YES)
|
||||
|
@ -304,6 +301,7 @@ NSAutoreleasePool *p = [NSAutoreleasePool new];
|
|||
}
|
||||
[nc postNotificationName: IBDidEndTestingInterfaceNotification
|
||||
object: self];
|
||||
RELEASE(pool);
|
||||
return self;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -185,6 +185,10 @@ static NSImage *classesImage = nil;
|
|||
{
|
||||
[objectsView addObject: anObject];
|
||||
[[self openEditorForObject: anObject] activate];
|
||||
if ([anObject isKindOfClass: [NSWindow class]] == YES)
|
||||
{
|
||||
[anObject setReleasedWhenClosed: NO];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -597,7 +601,6 @@ static NSImage *classesImage = nil;
|
|||
{
|
||||
if ([obj isKindOfClass: [NSWindow class]] == YES)
|
||||
{
|
||||
[obj setReleasedWhenClosed: YES];
|
||||
[obj close];
|
||||
}
|
||||
}
|
||||
|
@ -1254,8 +1257,11 @@ static NSImage *classesImage = nil;
|
|||
{
|
||||
if ([oldName isEqual: aName] == YES)
|
||||
{
|
||||
return; /* Already have this namre ... nothing to do */
|
||||
return; /* Already have this name ... nothing to do */
|
||||
}
|
||||
RETAIN(object);
|
||||
AUTORELEASE(object);
|
||||
[nameTable removeObjectForKey: oldName];
|
||||
NSMapRemove(objToName, (void*)object);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -198,7 +198,6 @@ static NSMapTable *docMap = 0;
|
|||
[nc removeObserver: self
|
||||
name: NSWindowDidBecomeKeyNotification
|
||||
object: selected];
|
||||
[selected setReleasedWhenClosed: YES];
|
||||
[selected close];
|
||||
}
|
||||
[objects removeObjectIdenticalTo: selected];
|
||||
|
|
Loading…
Reference in a new issue