mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-22 18:11:06 +00:00
Fixed NSBrowser loading
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@3285 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
62c51f7c1c
commit
33208ed39f
1 changed files with 11 additions and 2 deletions
|
@ -1033,6 +1033,7 @@ void __dummy_GMAppKit_functionForLinking() {}
|
|||
[archiver encodeSelector:[self doubleAction] withName:@"doubleAction"];
|
||||
}
|
||||
|
||||
#if 0
|
||||
+ (id)createObjectForModelUnarchiver:(GMUnarchiver*)unarchiver
|
||||
{
|
||||
unsigned backingType = [unarchiver decodeUnsignedIntWithName:
|
||||
|
@ -1046,9 +1047,13 @@ void __dummy_GMAppKit_functionForLinking() {}
|
|||
|
||||
return browser;
|
||||
}
|
||||
#endif
|
||||
|
||||
- (id)initWithModelUnarchiver :(GMUnarchiver *)unarchiver
|
||||
{
|
||||
id delegate;
|
||||
|
||||
|
||||
self = [super initWithModelUnarchiver:unarchiver];
|
||||
|
||||
[self setPath:[unarchiver decodeStringWithName:@"path"]];
|
||||
|
@ -1078,8 +1083,12 @@ void __dummy_GMAppKit_functionForLinking() {}
|
|||
[self setSendsActionOnArrowKeys:[unarchiver
|
||||
decodeBOOLWithName:@"sendsActionOnArrowKeys"]];
|
||||
|
||||
[self setDelegate:[unarchiver decodeObjectWithName:@"delegate"]];
|
||||
[self setDoubleAction:[unarchiver decodeBOOLWithName:@"doubleAction"]];
|
||||
//avoid an exeption
|
||||
delegate = [unarchiver decodeObjectWithName:@"delegate"];
|
||||
if (delegate)
|
||||
[self setDelegate:delegate];
|
||||
|
||||
[self setDoubleAction:[unarchiver decodeSelectorWithName:@"doubleAction"]];
|
||||
}
|
||||
|
||||
@end /* NSBrowser (GMArchiverMethods) */
|
||||
|
|
Loading…
Reference in a new issue