mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-30 22:40:38 +00:00
Move the initialization of windowmaps to initialize.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@26928 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
ad18392d69
commit
9337a42f98
2 changed files with 7 additions and 4 deletions
|
@ -631,6 +631,8 @@ static NSNotificationCenter *nc = nil;
|
|||
responderClass = [NSResponder class];
|
||||
viewClass = [NSView class];
|
||||
autosaveNames = [NSMutableSet new];
|
||||
windowmaps = NSCreateMapTable(NSIntMapKeyCallBacks,
|
||||
NSNonRetainedObjectMapValueCallBacks, 20);
|
||||
nc = [NSNotificationCenter defaultCenter];
|
||||
}
|
||||
}
|
||||
|
@ -812,10 +814,6 @@ many times.
|
|||
{
|
||||
NSDictionary *info;
|
||||
|
||||
if (!windowmaps)
|
||||
windowmaps = NSCreateMapTable(NSIntMapKeyCallBacks,
|
||||
NSNonRetainedObjectMapValueCallBacks, 20);
|
||||
|
||||
NSMapInsert(windowmaps, (void*)(intptr_t)_windowNum, self);
|
||||
|
||||
// Make sure not to create an autoreleased object,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue