Monotone-Parent: 9f9de7a3557546682618d6d9810573aa4a35d4d7

Monotone-Revision: 623ad0c87ffb3644e0f387cc6a9170c151f10621

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2007-04-11T19:51:07
Monotone-Branch: ca.inverse.sogo
This commit is contained in:
Wolfgang Sourdeau
2007-04-11 19:51:07 +00:00
parent 0b48a3b247
commit 662431c585
4 changed files with 25 additions and 1 deletions
+2
View File
@@ -3,6 +3,8 @@
* SoObjects/SOGo/NSString+Utilities.m ([NSString -boolValue]): new
method that SOGo will need with non-gnustep Foundation
implementation.
([NSString -stringByAppendingPathComponent:component]): new method
that SOGo will need when building with libFoundation.
* SoObjects/SOGo/SOGoUser.m ([SOGoUser -timeZone]): method moved
from SOGoObject.m.
+4
View File
@@ -40,6 +40,10 @@
#ifndef GNUSTEP_BASE_LIBRARY
- (BOOL) boolValue;
#ifdef LIB_FOUNDATION_LIBRARY
- (NSString *) stringByAppendingPathComponent: (NSString *) component
#endif
#endif
@end
+17
View File
@@ -106,6 +106,23 @@
return !([self isEqualToString: @"0"]
|| [self isEqualToString: @"NO"]);
}
#ifdef LIB_FOUNDATION_LIBRARY
- (NSString *) stringByAppendingPathComponent: (NSString *) component
{
NSMutableArray *components;
NSString *newString;
components = [NSMutableArray new];
[components addObjectsFromArray: [self componentsSeparatedByString: @"/"]];
[components addObject: component];
newString = [components componentsJoinedByString: @"/"];
[components release];
return newString;
}
#endif
#endif
@end
+2 -1
View File
@@ -19,6 +19,7 @@
02111-1307, USA.
*/
#import <Foundation/NSDictionary.h>
#import <Foundation/NSException.h>
#import <Foundation/NSUserDefaults.h>
#import <Foundation/NSKeyValueCoding.h>
@@ -365,7 +366,7 @@ static BOOL uixDebugEnabled = NO;
{
NSString *dst, *rel;
dst = [[self userFolderPath] stringByAppendingPathComponent:_sub];
dst = [[self userFolderPath] stringByAppendingPathComponent: _sub];
rel = [dst urlPathRelativeToPath:[self ownPath]];
return rel;