Skip to content

Commit

Permalink
Add isLoaded to CFBundle and CPBundle
Browse files Browse the repository at this point in the history
  • Loading branch information
vonbirdie authored and Ross Boucher committed Jun 24, 2010
1 parent 7c5a07f commit a6b7d45
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
12 changes: 10 additions & 2 deletions Foundation/CPBundle.j
Expand Up @@ -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);
Expand All @@ -133,8 +143,6 @@ var CPBundlesForURLStrings = { };
return _bundle.valueForInfoDictionaryKey(aKey);
}

//

- (void)loadWithDelegate:(id)aDelegate
{
_delegate = aDelegate;
Expand Down
5 changes: 5 additions & 0 deletions Objective-J/CFBundle.js
Expand Up @@ -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)
Expand Down

0 comments on commit a6b7d45

Please sign in to comment.