Fixed: removed deprecated check for no resource path.

Long ago it was required to use the -R option with nib2cib if custom images were used. nib2cib now infers the resource path, so there will always be at least a default resource path. Thus the check for no resource path was unnecessary.

This commit removes that check.
This commit is contained in:
Aparajita Fishman committed 2013-03-25 16:02:52 -04:00
1 parent b26542136e
commit 9f66de8422
1 file changed
+1 -5
+1 -5
View File
@@ -50,10 +50,6 @@ var FILE = require("file"),
// Defer resolving this path until runtime.
_resourceName = _resourceName.replace("NS", "CP");
}
else if (![[aCoder resourcesPath] length])
{
CPLog.warn("Resources found in nib, but no resources path specified with -R option.");
}
else
{
var resourcePath = [aCoder resourcePathForName:_resourceName];
@@ -67,7 +63,7 @@ var FILE = require("file"),
if (resourcePath && FILE.extension(resourcePath) !== FILE.extension(_resourceName))
_resourceName += FILE.extension(resourcePath);
CPLog.debug(" Path: %s\n Size: %d x %d", FILE.canonical(resourcePath), size.width, size.height);
CPLog.debug(" Rsrc: %s\n Path: %s\n Size: %d x %d", _resourceName, FILE.canonical(resourcePath), size.width, size.height);
}
_properties = [CPDictionary dictionaryWithObject:size forKey:@"size"];