Corrected a problem with creating palettes or inspectors.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/gorm/trunk@19277 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Gregory John Casamento 2004-05-10 12:08:49 +00:00
parent eb3003446b
commit a894e6b56a
3 changed files with 43 additions and 8 deletions

View file

@ -1,3 +1,12 @@
2004-05-09 10:16 Gregory John Casamento <greg_casamento@yahoo.com>
* GormDocument.m: Corrected an issue when creating an
"Inspector" or "Palette" in [GormDocument setupDefaults:].
The method was creating an NSWindow which doesn't respond
to one of the methods the inspector needs it to.
* GormSetName.gorm: Reduced the line to 2 pixels high to make it
look a little better.
2004-05-09 10:16 Gregory John Casamento <greg_casamento@yahoo.com>
* GModelDecoder.m: defineClass:inFile: changed signature

View file

@ -2608,10 +2608,23 @@ static NSImage *classesImage = nil;
NSRect frame = [[NSScreen mainScreen] frame];
unsigned style = NSTitledWindowMask | NSClosableWindowMask;
aWindow = [[NSWindow alloc] initWithContentRect: NSMakeRect(0,0, IVW, IVH)
styleMask: style
backing: NSBackingStoreRetained
defer: NO];
if ([NSWindow respondsToSelector: @selector(allocSubstitute)])
{
aWindow = [[NSWindow allocSubstitute]
initWithContentRect: NSMakeRect(0,0, IVW, IVH)
styleMask: style
backing: NSBackingStoreRetained
defer: NO];
}
else
{
aWindow = [[NSWindow alloc]
initWithContentRect: NSMakeRect(0,0, IVW, IVH)
styleMask: style
backing: NSBackingStoreRetained
defer: NO];
}
[aWindow setFrameTopLeftPoint:
NSMakePoint(220, frame.size.height-100)];
[aWindow setTitle: _(@"Inspector Window")];
@ -2625,10 +2638,23 @@ static NSImage *classesImage = nil;
NSRect frame = [[NSScreen mainScreen] frame];
unsigned style = NSTitledWindowMask | NSClosableWindowMask;
aWindow = [[NSWindow alloc] initWithContentRect: NSMakeRect(0,0,272,192)
styleMask: style
backing: NSBackingStoreRetained
defer: NO];
if ([NSWindow respondsToSelector: @selector(allocSubstitute)])
{
aWindow = [[NSWindow allocSubstitute]
initWithContentRect: NSMakeRect(0,0,272,192)
styleMask: style
backing: NSBackingStoreRetained
defer: NO];
}
else
{
aWindow = [[NSWindow alloc]
initWithContentRect: NSMakeRect(0,0,272,192)
styleMask: style
backing: NSBackingStoreRetained
defer: NO];
}
[aWindow setFrameTopLeftPoint:
NSMakePoint(220, frame.size.height-100)];
[aWindow setTitle: _(@"Palette Window")];