mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-30 03:10:38 +00:00
Fix for window subclass creation
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@6638 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
915261484f
commit
8dbc6372d1
2 changed files with 12 additions and 5 deletions
|
@ -1154,13 +1154,14 @@ void __dummy_GMAppKit_functionForLinking() {}
|
|||
unsigned styleMask = [unarchiver decodeUnsignedIntWithName:@"styleMask"];
|
||||
NSRect ctRect = [unarchiver decodeRectWithName:@"contentFrame"];
|
||||
|
||||
NSWindow* win = [[[NSWindow allocWithZone:[unarchiver objectZone]]
|
||||
initWithContentRect:ctRect
|
||||
styleMask:styleMask backing:backingType defer:YES]
|
||||
autorelease];
|
||||
NSWindow *win = [[self allocWithZone: [unarchiver objectZone]]
|
||||
initWithContentRect: ctRect
|
||||
styleMask: styleMask
|
||||
backing: backingType
|
||||
defer: YES];
|
||||
// printf("content: %g, %g -- frame %g, %g\n", ctRect.size.width, ctRect.size.height, [win frame].size.width, [win frame].size.height);
|
||||
|
||||
return win;
|
||||
return AUTORELEASE(win);
|
||||
}
|
||||
|
||||
- (id)initWithModelUnarchiver:(GMUnarchiver*)unarchiver
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue