mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-10-28 19:08:50 +00:00
Add isLoaded to CFBundle and CPBundle
This commit is contained in:
1 parent
7c5a07f709
commit
a6b7d456f4
2 files changed
+15
-2
No files matched your search
+10
-2
@@ -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;
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user