+2005-03-01 Helge Hess <helge.hess@opengroupware.org>
+
+ * SoObjects/SoProductResourceManager.m: fixed to use the changed lookup
+ in NGBundleManager.m (v4.5.122)
+
2005-02-25 Marcus Mueller <znek@mulle-kybernetik.com>
* WOResourceManager.m: Fixed condition in -resourcesPathForFramework:,
path = [[self->product bundle]
pathForResource:[_name stringByDeletingPathExtension]
ofType:[_name pathExtension]
- inDirectory:@"Resources"
+ inDirectory:nil
languages:_l];
if (debugOn && path == nil) {
- [self debugWithFormat:@" resource %@/%@ not found.",
- _name, [_l componentsJoinedByString:@","]];
+ [self debugWithFormat:@" resource %@/%@ not found in bundle: %@",
+ _name, [_l componentsJoinedByString:@","], [self->product bundle]];
}
return path;
}
resource = [self primaryLookupPathForResourceNamed:_name
languages:_languages];
+ if (debugOn) [self debugWithFormat:@" resource: %@", resource];
resource = [self fixupResourcePath:resource];
if (debugOn) [self debugWithFormat:@" resource to URL: %@", resource];
SUBMINOR_VERSION:=121
+# v4.5.122 requires libNGExtensions v4.5.153
# v4.5.91 requires libNGExtensions v4.5.134
# v4.5.84 requires libNGExtensions v4.5.127
# v4.3.42 requires libNGExtensions v4.3.116
+2005-03-01 Helge Hess <helge.hess@opengroupware.org>
+
+ * NGBundleManager.m (-pathForResource:ofType:inDirectory:languages:):
+ changed resource lookup to look in Contents/Resources or Resources
+ depending on the Foundaiton library when no inDirectory: has been
+ given (v4.5.153)
+
2005-02-23 Helge Hess <helge.hess@opengroupware.org>
* FdExt.subproj/NSNull+misc.m: added -hasPrefix: / -hasSuffix:, should
NSString *path = nil;
int i, langCount;
id (*objAtIdx)(id,SEL,int);
-
+
if (debugLanguageLookup) {
- NSLog(@"LOOKUP: %@ | %@ | %@ | %@",
+ NSLog(@"LOOKUP(%s): %@ | %@ | %@ | %@", __PRETTY_FUNCTION__,
_name, _ext, _directory, [_languages componentsJoinedByString:@","]);
}
- path = [_directory isNotNull]
- ? [[self bundlePath] stringByAppendingPathComponent:_directory]
- : [self bundlePath];
-
+ path = [self bundlePath];
+ if ([_directory isNotNull]) {
+ // TODO: should we change that?
+ path = [path stringByAppendingPathComponent:_directory];
+ }
+ else {
+#if (NeXT_Foundation_LIBRARY || APPLE_Foundation_LIBRARY)
+ path = [path stringByAppendingPathComponent:@"Contents"];
+#endif
+ path = [path stringByAppendingPathComponent:@"Resources"];
+ }
+
if (debugLanguageLookup) NSLog(@" BASE: %@", path);
fm = [NSFileManager defaultManager];
# version
-SUBMINOR_VERSION:=152
+SUBMINOR_VERSION:=153
# v4.3.115 requires libFoundation v1.0.59
# v4.2.72 requires libEOControl v4.2.39