2004-09-24 Helge Hess <helge.hess@skyrix.com>
+ * SoObjects/SoProductRegistry.m: do not abort scanning for SOPE
+ products if GNUSTEP_PATHPREFIX_LIST is not set (to continue
+ searching in FHS locations) (v4.3.45)
+
* SoObjects/SoSecurityManager.m: improved reason string of security
exceptions (v4.3.44)
Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA
02111-1307, USA.
*/
-// $Id$
#include "SoApplication.h"
#include "SoClassRegistry.h"
static BOOL debugLookup = NO;
- (BOOL)loadProducts:(id)_spec {
- if (_spec) {
- // TODO: load specified products
+ if (_spec != nil) {
+ // TODO: only load specified products
[self logWithFormat:@"load products (not implemented): %@", _spec];
return NO;
}
[self setDefaultRequestHandler:tmp];
[tmp release];
- /* load products */
+ /* load products (all if SoApplicationLoadProducts is not set) */
if (![self loadProducts:[ud objectForKey:@"SoApplicationLoadProducts"]]) {
[self logWithFormat:@"failed to load the products ..."];
[self release];
/*
- Copyright (C) 2000-2003 SKYRIX Software AG
+ Copyright (C) 2000-2004 SKYRIX Software AG
- This file is part of OGo
+ This file is part of OpenGroupware.org.
OGo is free software; you can redistribute it and/or modify it under
the terms of the GNU Lesser General Public License as published by the
Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA
02111-1307, USA.
*/
-// $Id$
#include "SoClassRegistry.h"
#include "SoObjCClass.h"
static int debugOn = 0;
+ (void)initialize {
+ NSUserDefaults *ud = [NSUserDefaults standardUserDefaults];
static BOOL didInit = NO;
- if (!didInit) {
- NSUserDefaults *ud = [NSUserDefaults standardUserDefaults];
- didInit = YES;
- debugOn = [ud boolForKey:@"SoProductRegistryDebugEnabled"] ? 1 : 0;
- }
+ if (didInit) return;
+ didInit = YES;
+
+ debugOn = [ud boolForKey:@"SoProductRegistryDebugEnabled"] ? 1 : 0;
}
+ (id)sharedProductRegistry {
pathes = [[pathes stringValue] componentsSeparatedByString:@":"];
#endif
-
- if ([pathes count] == 0) {
- [self debugWithFormat:@"found no product pathes."];
- return;
- }
[self debugWithFormat:@"scanning for products ..."];
# version file
-SUBMINOR_VERSION:=44
+SUBMINOR_VERSION:=45
# v4.3.42 requires libNGExtensions v4.3.116
# v4.3.40 requires libNGExtensions v4.3.115