diff --git a/Foundation/CPBundle.j b/Foundation/CPBundle.j index 39aae0b29d..89c082c4b6 100644 --- a/Foundation/CPBundle.j +++ b/Foundation/CPBundle.j @@ -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; diff --git a/Objective-J/CFBundle.js b/Objective-J/CFBundle.js index 8c7044e733..03639c8b03 100644 --- a/Objective-J/CFBundle.js +++ b/Objective-J/CFBundle.js @@ -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)