/*
- Copyright (C) 2000-2005 SKYRIX Software AG
+ Copyright (C) 2000-2006 SKYRIX Software AG
+ Copyright (C) 2006 Helge Hess
This file is part of SOPE.
if (debugOn) {
fprintf(stderr, "%s: Dylib bundle: 0x%p: %s\n",
__PRETTY_FUNCTION__,
- (unsigned int )bundle, [[bundle bundlePath] cString]);
+ bundle, [[bundle bundlePath] cString]);
}
bundle = nil;
}
if (debugOn) {
fprintf(stderr, "%s: Tool bundle: 0x%p: %s\n",
__PRETTY_FUNCTION__,
- (unsigned int )bundle, [[bundle bundlePath] cString]);
+ bundle, [[bundle bundlePath] cString]);
}
bundle = nil;
}
bundleInfo = [NSDictionary dictionaryWithContentsOfFile:_path];
#endif
if (bundleInfo == nil) {
- NSLog(@"couldn't load bundle-info at path '%@' !", _path);
+ NSLog(@"could not load bundle-info at path '%@' !", _path);
return nil;
}
NSDictionary *requires;
NSMutableArray *requiredBundles = nil;
NSBundle *requiredBundle = nil;
+
+ if (debugOn) NSLog(@"NGBundleManager: preload bundle: %@", _bundle);
requires = [_bundleInfo objectForKey:@"requires"];
{
NSEnumerator *e;
+ if (debugOn) {
+ NSLog(@"NGBundleManager: preload required bundles: %@",
+ requiredBundles);
+ }
+
e = [requiredBundles objectEnumerator];
while ((requiredBundle = [e nextObject]) != nil) {
Class bundleMaster;
if (![self _preLoadBundle:_bundle info:bundleInfo])
goto done;
-
+
+ if (debugOn) NSLog(@"NGBundleManager: will load bundle: %@", _bundle);
if (![_bundle _loadForBundleManager:self])
goto done;
+ if (debugOn) NSLog(@"NGBundleManager: did load bundle: %@", _bundle);
if (![self _postLoadBundle:_bundle info:bundleInfo])
goto done;
providedByBundle:self];
}
-// loading
+/* loading */
- (BOOL)_loadForBundleManager:(NGBundleManager *)_manager {
return [self load];