mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-11-18 20:49:22 +00:00
More bindings nib2cib fixes.
This commit is contained in:
1 parent
63d5c442a3
commit
75427973f0
2 files changed
+7
-7
No files matched your search
@@ -47,6 +47,8 @@ var CPCibBindingConnectorBindingKey = @"CPCibBindingConnectorBindingKey",
|
||||
|
||||
- (void)encodeWithCoder:(CPCoder)aCoder
|
||||
{
|
||||
[super encodeWithCoder:aCoder];
|
||||
|
||||
[aCoder encodeObject:_binding forKey:CPCibBindingConnectorBindingKey];
|
||||
[aCoder encodeObject:_keyPath forKey:CPCibBindingConnectorKeyPathKey];
|
||||
[aCoder encodeObject:_options forKey:CPCibBindingConnectorOptionsKey];
|
||||
|
||||
@@ -31,13 +31,13 @@ NIB_CONNECTION_EQUIVALENCY_TABLE = {};
|
||||
- (id)NS_initWithCoder:(CPCoder)aCoder
|
||||
{
|
||||
self = [super init];
|
||||
|
||||
|
||||
if (self)
|
||||
{
|
||||
_source = [aCoder decodeObjectForKey:@"NSSource"];
|
||||
_destination = [aCoder decodeObjectForKey:@"NSDestination"];
|
||||
_label = [aCoder decodeObjectForKey:@"NSLabel"];
|
||||
|
||||
|
||||
var sourceUID = [_source UID],
|
||||
destinationUID = [_destination UID];
|
||||
|
||||
@@ -55,7 +55,7 @@ NIB_CONNECTION_EQUIVALENCY_TABLE = {};
|
||||
|
||||
CPLog.debug(@"Connection: " + [_source description] + " " + [_destination description] + " " + _label);
|
||||
}
|
||||
|
||||
|
||||
return self;
|
||||
}
|
||||
|
||||
@@ -113,15 +113,13 @@ NIB_CONNECTION_EQUIVALENCY_TABLE = {};
|
||||
|
||||
- (id)NS_initWithCoder:(CPCoder)aCoder
|
||||
{
|
||||
self = [super init];
|
||||
|
||||
if (self)
|
||||
if (self = [super NS_initWithCoder:aCoder])
|
||||
{
|
||||
_binding = [aCoder decodeObjectForKey:@"NSBinding"];
|
||||
_keyPath = [aCoder decodeObjectForKey:@"NSKeyPath"];
|
||||
_options = [aCoder decodeObjectForKey:@"NSOptions"];
|
||||
|
||||
CPLog.debug(@"Binding Connector: " + [_binding description] + " " + [_keyPath description] + " " + [_options description]);
|
||||
CPLog.debug(@"Binding Connector: " + [_binding description] + " to: " + _destination + " " + [_keyPath description] + " " + [_options description]);
|
||||
}
|
||||
|
||||
return self;
|
||||
|
||||
Reference in new issue
Block a user