Added debug logging, some more samples in AppController

This commit is contained in:
Aparajita Fishman
2011-03-28 19:24:13 -04:00
parent c0f5ed1f87
commit e80cbc89b2
2 changed files with 20 additions and 1 deletions
@@ -533,6 +533,17 @@ SW5pdGlhbEZpcnN0UmVzcG9uZGVyIG1ldGhvZA</string>
<string key="keyPath">initialResponder</string>
<real value="2" key="value"/>
</object>
<object class="IBUserDefinedRuntimeAttribute">
<string key="typeIdentifier">com.apple.InterfaceBuilder.userDefinedRuntimeAttributeType.string</string>
<string key="keyPath">localized</string>
<string key="value">foo</string>
<bool key="localized">YES</bool>
</object>
<object class="IBUserDefinedRuntimeAttribute">
<string key="typeIdentifier">com.apple.InterfaceBuilder.userDefinedRuntimeAttributeType.nil</string>
<string key="keyPath">null</string>
<nil key="value"/>
</object>
</array>
</object>
</object>
+9 -1
View File
@@ -54,7 +54,8 @@ NIB_CONNECTION_EQUIVALENCY_TABLE = {};
_destination = NIB_CONNECTION_EQUIVALENCY_TABLE[destinationUID];
}
CPLog.debug(@"Connection: " + [_source description] + " " + [_destination description] + " " + _label);
if (_source && _destination)
CPLog.debug(@"Connection: " + [_source description] + " " + [_destination description] + " " + _label);
}
return self;
@@ -180,6 +181,13 @@ var NSTramsformers = [CPSet setWithObjects:
_source = [aCoder decodeObjectForKey:@"NSObject"];
_keyPaths = [aCoder decodeObjectForKey:@"NSKeyPaths"];
_values = [aCoder decodeObjectForKey:@"NSValues"];
var count = [_keyPaths count];
CPLog.debug(@"Runtime Attributes Connector: " + [_source description]);
while (count--)
CPLog.debug(@" %s (%s): %s", _keyPaths[count], [_values[count] className], _values[count]);
}
return self;