mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-09-13 14:11:27 +00:00
Only log the connection info if _source and _destination are defined. Runtime attribute connections do not have both. Correctly show boolean value types as BOOL, not CPNumber.
This commit is contained in:
@@ -54,7 +54,8 @@ NIB_CONNECTION_EQUIVALENCY_TABLE = {};
|
||||
_destination = NIB_CONNECTION_EQUIVALENCY_TABLE[destinationUID];
|
||||
}
|
||||
|
||||
CPLog.debug(@"NSNibConnector: connection: " + [_source description] + " " + [_destination description] + " " + _label);
|
||||
if (_source && _destination)
|
||||
CPLog.debug(@"NSNibConnector: connection: " + [_source description] + " " + [_destination description] + " " + _label);
|
||||
}
|
||||
|
||||
return self;
|
||||
@@ -186,7 +187,12 @@ var NSTransformers = [CPSet setWithObjects:
|
||||
CPLog.debug(@"NSNibConnector: runtime attributes connector: " + [_source description]);
|
||||
|
||||
while (count--)
|
||||
CPLog.debug(@" %s (%s): %s", _keyPaths[count], [_values[count] className], _values[count]);
|
||||
{
|
||||
var value = _values[count],
|
||||
type = typeof(value) === "boolean" ? "BOOL" : [value className];
|
||||
|
||||
CPLog.debug(@" %s (%s): %s", _keyPaths[count], type, value);
|
||||
}
|
||||
}
|
||||
|
||||
return self;
|
||||
|
||||
Reference in New Issue
Block a user