Changeset 4611

Show
Ignore:
Timestamp:
02/13/07 23:29:55 (2 years ago)
Author:
morris
Message:

Resolve tildes in log path

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • WiredServer/trunk/PreferencePane/English.lproj/Wired.nib/info.nib

    r4179 r4611  
    1212        </array> 
    1313        <key>IBSystem Version</key> 
    14         <string>8I127</string> 
     14        <string>8L2127</string> 
    1515</dict> 
    1616</plist> 
  • WiredServer/trunk/WCDashboardController.m

    r4496 r4611  
    196196                case WCLogMethodFile: 
    197197                        [arguments addObject:@"-L"]; 
    198                         [arguments addObject:[WCSettings objectForKey:WCLogFile]]; 
     198                        [arguments addObject:[[WCSettings objectForKey:WCLogFile] stringByExpandingTildeInPath]]; 
    199199                         
    200200                        if([WCSettings boolForKey:WCLimitLogFile]) { 
     
    226226        NSUInteger              i, argc; 
    227227        int                             status; 
    228          
     228 
    229229        argc = [arguments count]; 
    230230        argv = (char **) malloc(sizeof(char *) * (argc + 1)); 
  • WiredServer/trunk/WCSettings.h

    r3950 r4611  
    2727 */ 
    2828 
     29NSString *                                                      WCExpandWiredPath(NSString *); 
     30 
     31 
    2932@interface WCSettings : WISettings 
    3033 
     
    4750#define WCUpdateInterval                        @"WCUpdateInterval" 
    4851 
    49  
    50 NSString *                                                      WCExpandWiredPath(NSString *); 
    51  
    5252@end 
  • WiredServer/trunk/WCSettings.m

    r3950 r4611  
    2929#import "WCSettings.h" 
    3030 
    31 @implementation WCSettings 
    32  
    3331NSString * WCExpandWiredPath(NSString *path) { 
     32        path = [path stringByExpandingTildeInPath]; 
     33         
    3434        if([path hasPrefix:@"/"]) 
    3535                return path; 
     
    3939 
    4040 
     41 
     42@implementation WCSettings 
    4143 
    4244+ (NSDictionary *)defaults {