only nib2cib bundle if bundle path is set in nib

This commit is contained in:
Klaas Pieter Annema committed 2010-09-30 13:13:18 +02:00
1 parent ca2ae22f15
commit 2935651578
1 file changed
+4 -1
+4 -1
View File
@@ -33,7 +33,10 @@
{
_title = [aCoder decodeObjectForKey:@"NSTitle"];
_cibName = [aCoder decodeObjectForKey:@"NSNibName"];
_cibBundle = [CPBundle bundleWithPath:[aCoder decodeObjectForKey:@"NSNibBundleIdentifier"]];
var bundlePath = [aCoder decodeObjectForKey:@"NSNibBundleIdentifier"]
if (bundlePath)
_cibBundle = [CPBundle bundleWithPath:bundlePath];
}
return self;