mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-30 01:30:38 +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
b22f2ecd03
commit
82a46f6434
2 changed files with 24 additions and 0 deletions
|
@ -1538,6 +1538,24 @@ void __dummy_GMAppKit_functionForLinking() {}
|
|||
|
||||
@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)
|
||||
|
||||
- (void)encodeWithModelArchiver:(GMArchiver*)archiver
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue