5 // Created by David Botsch on 10/23/07.
6 // Copyright (c) 2007 __MyCompanyName__. All rights reserved.
9 #import "afscellPane.h"
12 @implementation afscellPane
16 return [[NSBundle bundleForClass:[self class]] localizedStringForKey:@"PaneTitle" value:nil table:nil];
21 /* called when user clicks "Continue" -- return value indicates if application should exit pane */
22 - (BOOL)shouldExitPane:(InstallerSectionDirection)dir
24 if(InstallerDirectionForward == dir) {
26 /* Update ThisCell and CellAlias files with input */
27 NSString * WSCell = [ThisCell stringValue];
28 NSString * WSAlias = [CellAlias stringValue];
32 BOOL wr1 = [WSCell writeToFile:@"/private/tmp/ThisCell" atomically:YES];
35 if ([WSAlias length] != 0) {
36 NSMutableString * aliasString = [[NSMutableString alloc] init];
37 [aliasString appendString:WSCell];
38 [aliasString appendFormat:@" "];
39 [aliasString appendString:WSAlias];
40 wr2 = [aliasString writeToFile:@"/private/tmp/CellAlias" atomically:YES];
43 NSMutableString * results = [[NSMutableString alloc] init];
44 [results appendFormat:@"Write 1 is %d and write 2 is %d\n", wr1, wr2];
45 [results writeToFile:@"/private/tmp/writefile" atomically:YES];