46 |
|
|
47 |
|
- (id) init |
48 |
|
{ |
49 |
< |
return [super initWithWindowNibName:@"VMSettingsWindow"]; |
49 |
> |
self = [super initWithWindowNibName:@"VMSettingsWindow"]; |
50 |
> |
|
51 |
> |
cancelWasClicked = NO; |
52 |
> |
|
53 |
> |
return self; |
54 |
|
} |
55 |
|
|
56 |
|
- (int) numberOfRowsInTableView: (NSTableView *) table |
293 |
|
PrefsExit(); |
294 |
|
[[self window] close]; |
295 |
|
[NSApp stopModal]; |
296 |
+ |
cancelWasClicked = YES; |
297 |
|
} |
298 |
|
|
299 |
|
- (void) saveChanges: (id) sender |
351 |
|
|
352 |
|
[[self window] close]; |
353 |
|
[NSApp stopModal]; |
354 |
+ |
cancelWasClicked = NO; |
355 |
+ |
} |
356 |
+ |
|
357 |
+ |
- (BOOL) cancelWasClicked |
358 |
+ |
{ |
359 |
+ |
return cancelWasClicked; |
360 |
|
} |
361 |
|
|
362 |
|
- (void) dealloc |