Correct the instantiation of NIB bindings. Should fix bug #34644.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@34098 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Fred Kiefer 2011-10-31 17:52:33 +00:00
parent c72e465a66
commit 16e01f25a1
3 changed files with 34 additions and 0 deletions

View file

@ -52,6 +52,10 @@
- (void) setRealObject: (id)obj;
@end
@interface NSNibConnector (NibCompatibility)
- (id) nibInstantiate;
@end
@implementation FirstResponder
+ (id) allocWithZone: (NSZone*)zone
@ -341,6 +345,9 @@
- (id) initWithCoder: (NSCoder*)coder
{
self = [super initWithCoder: coder];
if (self == nil)
return nil;
if ([coder allowsKeyedCoding])
{
if ([coder containsValueForKey: @"connector"])
@ -352,6 +359,12 @@
return self;
}
- (id) nibInstantiate
{
[connector nibInstantiate];
return [super nibInstantiate];
}
- (void) establishConnection
{
[connector establishConnection];