Merge pull request #2485 from cacaodev/ibtool-warnings

nib2cib: discard warnings in the nib file.
This commit is contained in:
Martin Carlberg
2016-10-17 18:07:59 +02:00
committed by GitHub
2 changed files with 9 additions and 1 deletions
+6 -1
View File
@@ -50,7 +50,12 @@
_classesKeys = [aCoder decodeObjectForKey:@"NSClassesKeys"];
_classesValues = [aCoder decodeObjectForKey:@"NSClassesValues"];
_connections = [aCoder decodeObjectForKey:@"NSConnections"];
var connections = [aCoder decodeObjectForKey:@"NSConnections"];
// Filter out connections with invalid destinations.
_connections = [connections filteredArrayUsingBlock:function(conn, idx, stop)
{
return [conn destination] !== nil;
}];
//_fontManager = [aCoder decodeObjectForKey:@"NSFontManager"] retain];
_framework = [aCoder decodeObjectForKey:@"NSFramework"];
+3
View File
@@ -42,6 +42,9 @@ NIB_CONNECTION_EQUIVALENCY_TABLE = {};
_destination = [aCoder decodeObjectForKey:@"NSDestination"];
_label = [aCoder decodeObjectForKey:@"NSLabel"];
if (_destination == nil)
CPLog.warn(_label);
var sourceUID = [_source UID],
destinationUID = [_destination UID];