Add isLoaded to CFBundle and CPBundle

This commit is contained in:
Andreas authored and Ross Boucher committed 2010-06-23 20:11:05 -07:00
1 parent 7c5a07f709
commit a6b7d456f4
2 files changed
+15 -2

No files matched your search

+10 -2
View File
@@ -118,6 +118,16 @@ var CPBundlesForURLStrings = { };
return className ? CPClassFromString(className) : Nil;
}
- (CPString)bundleIdentifier
{
return [self objectForInfoDictionaryKey:@"CPBundleIdentifier"];
}
- (BOOL)isLoaded
{
return _bundle.isLoaded();
}
- (CPString)pathForResource:(CPString)aFilename
{
return _bundle.pathForResource(aFilename);
@@ -133,8 +143,6 @@ var CPBundlesForURLStrings = { };
return _bundle.valueForInfoDictionaryKey(aKey);
}
//
- (void)loadWithDelegate:(id)aDelegate
{
_delegate = aDelegate;
+5
View File
@@ -235,6 +235,11 @@ CFBundle.prototype.isLoading = function()
return this._loadStatus & CFBundleLoading;
}
CFBundle.prototype.isLoaded = function()
{
return this._loadStatus & CFBundleLoaded;
}
DISPLAY_NAME(CFBundle.prototype.isLoading);
CFBundle.prototype.load = function(/*BOOL*/ shouldExecute)