mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-09-08 06:57:59 +00:00
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:
@@ -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.
|
||||
|
||||
@@ -40,6 +40,10 @@
|
||||
|
||||
#ifndef GNUSTEP_BASE_LIBRARY
|
||||
- (BOOL) boolValue;
|
||||
|
||||
#ifdef LIB_FOUNDATION_LIBRARY
|
||||
- (NSString *) stringByAppendingPathComponent: (NSString *) component
|
||||
#endif
|
||||
#endif
|
||||
|
||||
@end
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user