mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-31 20:40:47 +00:00
Implement NSForm loading
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@7299 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
7946c84d18
commit
95aa8e0460
2 changed files with 24 additions and 0 deletions
|
@ -1,3 +1,9 @@
|
||||||
|
2000-08-29 Georg Fleischmann
|
||||||
|
|
||||||
|
* gui/Model/GMAppKit.m
|
||||||
|
[NSForm (GMArchiverMethods) initWithModelUnarchiver:]:
|
||||||
|
new method, allows auto alignment of form titles
|
||||||
|
|
||||||
Thu Aug 31 00:30:15 2000 Nicola Pero <nicola@brainstorm.co.uk>
|
Thu Aug 31 00:30:15 2000 Nicola Pero <nicola@brainstorm.co.uk>
|
||||||
|
|
||||||
* Source/NSSavePanel.m ([-_initWithoutGModel]): Fixed setting of
|
* Source/NSSavePanel.m ([-_initWithoutGModel]): Fixed setting of
|
||||||
|
|
|
@ -1538,6 +1538,24 @@ void __dummy_GMAppKit_functionForLinking() {}
|
||||||
|
|
||||||
@end /* NSTextFieldCell (GMArchiverMethods) */
|
@end /* NSTextFieldCell (GMArchiverMethods) */
|
||||||
|
|
||||||
|
@implementation NSForm (GMArchiverMethods)
|
||||||
|
|
||||||
|
- (id)initWithModelUnarchiver:(GMUnarchiver*)unarchiver
|
||||||
|
{ int i;
|
||||||
|
|
||||||
|
self = [super initWithModelUnarchiver:unarchiver];
|
||||||
|
[self setValidateSize: YES];
|
||||||
|
for (i=[self numberOfRows]-1; i>=0; i--)
|
||||||
|
[[NSNotificationCenter defaultCenter]
|
||||||
|
addObserver: self
|
||||||
|
selector: @selector(_setTitleWidthNeedsUpdate:)
|
||||||
|
name: _NSFormCellDidChangeTitleWidthNotification
|
||||||
|
object: [self cellAtIndex:i]];
|
||||||
|
return self;
|
||||||
|
}
|
||||||
|
|
||||||
|
@end /* NSForm (GMArchiverMethods) */
|
||||||
|
|
||||||
@implementation NSFormCell (GMArchiverMethods)
|
@implementation NSFormCell (GMArchiverMethods)
|
||||||
|
|
||||||
- (void)encodeWithModelArchiver:(GMArchiver*)archiver
|
- (void)encodeWithModelArchiver:(GMArchiver*)archiver
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue