nib2cib: discard warnings in the nib file.

This commit is contained in:
cacaodev
2016-09-26 09:44:23 +02:00
parent 5059028e8a
commit 4e11152e76
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];