mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 15:11:37 +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
|
@ -1,3 +1,9 @@
|
|||
2000-05-04 Georg Fleischmann
|
||||
|
||||
* gui/Model/GMAppKit.m ([NSWindow -createObjectForModelUnarchiver:]):
|
||||
use self instead of NSWindow class
|
||||
to allow creation of subclasses of NSWindow
|
||||
|
||||
2000-06-03 Richard Frith-Macdonald <rfm@gnu.org>
|
||||
|
||||
* Source/NSAttributedString.m: ([-setAlignment:range:]) retain/release
|
||||
|
|
|
@ -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…
Reference in a new issue