Changes for encoding GormObjectProxy as NSCustomObject also some minor cleanup of the minimalContainerFrame() function.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/gorm/trunk@23179 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Gregory John Casamento 2006-07-19 03:09:16 +00:00
parent a73cd2aaa2
commit e26b4303fd
5 changed files with 28 additions and 3 deletions

View file

@ -1,3 +1,12 @@
2006-07-18 23:04 Gregory John Casamento <greg_casamento@yahoo.com>
* GormCore/GormFunctions.m: Remove the width and height adjustment
from the function minimalContainerFrame().
* GormCore/GormPrivate.m: Add the encoding logic for saving
NSCustomObject.
* GormCore/GormViewWindow.m: Add the width and height here, instead
of in the function.
2006-07-16 23:13 Gregory John Casamento <greg_casamento@yahoo.com>
* GormCore/GormFunctions.h:

View file

@ -147,6 +147,8 @@
// get the classname...
[self setClassName: [customView className]];
// _super_view = [customView superview];
// _window = [customView window];
RELEASE(customView);

View file

@ -469,5 +469,5 @@ NSRect minimalContainerFrame(NSArray *views)
h = nh;
}
return NSMakeRect(0,0,w+40,h+70);
return NSMakeRect(0,0,w,h);
}

View file

@ -65,7 +65,6 @@ static BOOL _isInInterfaceBuilder = NO;
frame: NSMakeRect(0,0,0,0)];
}
- (NSString*) className
{
return theClass;
@ -165,6 +164,19 @@ static BOOL _isInInterfaceBuilder = NO;
return nil;
}
- (void) encodeWithCoder: (NSCoder *)coder
{
if([coder allowsKeyedCoding])
{
[coder encodeObject: theClass
forKey: @"NSClassName"];
}
else
{
[super encodeWithCoder: coder];
}
}
- (NSString*) inspectorClassName
{
return @"GormNotApplicableInspector";

View file

@ -66,7 +66,9 @@
if([subs count] > 0)
{
newFrame = minimalContainerFrame(subs);
newFrame = minimalContainerFrame(subs);
newFrame.size.height += 70;
newFrame.size.width += 40;
[window setFrame: newFrame display: YES];
[_view setPostsFrameChangedNotifications: YES];
}