+2004-09-20 Marcus Mueller <znek@mulle-kybernetik.com>
+
+ * v4.3.115
+
+ * NGExtensions/NSBundle+misc.h, FdExt.subproj/NSBundle+misc.m: new
+ NSBundle method -pathForResource:ofType:inDirectory:forLocalizations:
+
+ * NGExtensions/NGExtensions.h: added NSBundle+misc.h to the public
+ headers
+
2004-09-06 Helge Hess <helge.hess@skyrix.com>
* FdExt.subproj/NSFileManager+Extensions.m: added new method:
FdExt_OBJC_FILES = \
NSArray+enumerator.m \
NSAutoreleasePool+misc.m \
+ NSBundle+misc.m \
NSCalendarDate+misc.m \
NSData+gzip.m \
NSData+misc.m \
--- /dev/null
+/*
+ Copyright (C) 2004 SKYRIX Software AG
+
+ 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; either version 2, or (at your option) any
+ later version.
+
+ OGo is distributed in the hope that it will be useful, but WITHOUT ANY
+ WARRANTY; without even the implied warranty of MERCHANTABILITY or
+ FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
+ License for more details.
+
+ You should have received a copy of the GNU Lesser General Public
+ License along with OGo; see the file COPYING. If not, write to the
+ Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA
+ 02111-1307, USA.
+ */
+
+
+#import "common.h"
+#import "NSBundle+misc.h"
+
+#ifndef LIB_FOUNDATION_LIBRARY
+
+@implementation NSBundle(misc)
+
+- (NSString*)pathForResource:(NSString*)name ofType:(NSString*)ext
+ inDirectory:(NSString*)directory
+ forLocalizations:(NSArray*)localizationNames
+{
+ if(!localizationNames) {
+ return [self pathForResource:name ofType:ext inDirectory:directory];
+ }
+ else {
+ unsigned i, count;
+
+ count = [localizationNames count];
+ for(i = 0; i < count; i++) {
+ NSString *lname, *path;
+
+ lname = [localizationNames objectAtIndex:i];
+ path = [self pathForResource:name ofType:ext inDirectory:directory
+ forLocalization:lname];
+ if(path)
+ return path;
+ }
+ }
+ return nil;
+}
+
+@end /* NSBundle(misc) */
+#endif
FdExt_HEADER_FILES = \
NSArray+enumerator.h \
NSAutoreleasePool+misc.h \
+ NSBundle+misc.h \
NSCalendarDate+misc.h \
NSData+gzip.h \
NSData+misc.h \
};
objectVersion = 39;
objects = {
+ ADD45B5E06FEF017004BBD65 = {
+ fileEncoding = 5;
+ indentWidth = 2;
+ isa = PBXFileReference;
+ lastKnownFileType = sourcecode.c.h;
+ path = "NSBundle+misc.h";
+ refType = 4;
+ sourceTree = "<group>";
+ };
+ ADD45B5F06FEF017004BBD65 = {
+ fileEncoding = 5;
+ indentWidth = 2;
+ isa = PBXFileReference;
+ lastKnownFileType = sourcecode.c.objc;
+ path = "NSBundle+misc.m";
+ refType = 4;
+ sourceTree = "<group>";
+ };
+ ADD45B6006FEF017004BBD65 = {
+ fileRef = ADD45B5E06FEF017004BBD65;
+ isa = PBXBuildFile;
+ settings = {
+ };
+ };
+ ADD45B6106FEF017004BBD65 = {
+ fileRef = ADD45B5F06FEF017004BBD65;
+ isa = PBXBuildFile;
+ settings = {
+ };
+ };
ADD65B6606DA32D6007161CA = {
children = (
ADD65C7106DA343C007161CA,
ADD65C3A06DA336E007161CA,
ADD65C3B06DA336E007161CA,
ADD65C3C06DA336E007161CA,
+ ADD45B5F06FEF017004BBD65,
ADD65C3D06DA336E007161CA,
ADD65C3E06DA336E007161CA,
ADD65C3F06DA336E007161CA,
ADD65DE706DA3830007161CA,
ADD65DE806DA3830007161CA,
ADD65DE906DA3830007161CA,
+ ADD45B6006FEF017004BBD65,
);
isa = PBXHeadersBuildPhase;
runOnlyForDeploymentPostprocessing = 0;
ADD65F3106DA397E007161CA,
ADD65F3206DA397E007161CA,
ADD65F3306DA397E007161CA,
+ ADD45B6106FEF017004BBD65,
);
isa = PBXSourcesBuildPhase;
runOnlyForDeploymentPostprocessing = 0;
children = (
ADD65D9006DA3830007161CA,
ADD65D9106DA3830007161CA,
+ ADD45B5E06FEF017004BBD65,
ADD65D9206DA3830007161CA,
ADD65D9306DA3830007161CA,
ADD65D9406DA3830007161CA,
#include <NGExtensions/NGQuotedPrintableCoding.h>
#include <NGExtensions/NGStack.h>
#include <NGExtensions/NSArray+enumerator.h>
+#include <NGExtensions/NSBundle+misc.h>
#include <NGExtensions/NSCalendarDate+misc.h>
#include <NGExtensions/NSData+misc.h>
#include <NGExtensions/NSDictionary+misc.h>
--- /dev/null
+/*
+ Copyright (C) 2004 SKYRIX Software AG
+
+ 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; either version 2, or (at your option) any
+ later version.
+
+ OGo is distributed in the hope that it will be useful, but WITHOUT ANY
+ WARRANTY; without even the implied warranty of MERCHANTABILITY or
+ FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
+ License for more details.
+
+ You should have received a copy of the GNU Lesser General Public
+ License along with OGo; see the file COPYING. If not, write to the
+ Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA
+ 02111-1307, USA.
+*/
+
+#ifndef __NGExtensions_NSBundle_misc_H__
+#define __NGExtensions_NSBundle_misc_H__
+
+
+#import <Foundation/NSBundle.h>
+
+
+@interface NSBundle (misc)
+
+- (NSString*)pathForResource:(NSString*)name ofType:(NSString*)ext
+ inDirectory:(NSString*)directory
+ forLocalizations:(NSArray*)localizationNames;
+
+@end
+
+#endif /* __NGExtensions_NSBundle_misc_H__ */
# version
-SUBMINOR_VERSION:=114
+SUBMINOR_VERSION:=115
-# v4.2.72 requires libEOControl v4.2.39
+# v4.3.115 requires libFoundation v1.0.59
+# v4.2.72 requires libEOControl v4.2.39
mainGroup = ADDF476606DA572500C4E7F8;
projectDirPath = "";
projectReferences = (
- {
- ProductGroup = ADDF478906DA583300C4E7F8;
- ProjectRef = ADDF478806DA583300C4E7F8;
- },
{
ProductGroup = ADDF478506DA580C00C4E7F8;
ProjectRef = ADDF478406DA580C00C4E7F8;
ProductGroup = ADDF478706DA581F00C4E7F8;
ProjectRef = ADDF478606DA581F00C4E7F8;
},
+ {
+ ProductGroup = ADDF478906DA583300C4E7F8;
+ ProjectRef = ADDF478806DA583300C4E7F8;
+ },
);
targets = (
ADDF479906DA58D700C4E7F8,