public
Description: A buildbot GUI for OS X
Homepage: http://code.google.com/p/buildwatch/
Clone URL: git://github.com/dustin/buildwatch.git
dustin (author)
Tue Mar 11 19:13:31 -0700 2008
commit  29a3900a7c037f94eee70982d94994edae04347d
tree    e21b2e3722783e38dec09a6ef4cf5caa9a5a9f4e
parent  daf0ee4e2a97dca92305a709c0e3c6585dafbf5e
buildwatch / PrefController.m
100644 27 lines (20 sloc) 0.63 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
//
// PrefController.m
// BuildWatch
//
// Created by Dustin Sallings on 3/10/08.
// Copyright 2008 Dustin Sallings <dustin@spy.net>. All rights reserved.
//
 
#import "PrefController.h"
 
 
@implementation PrefController
 
- (IBAction) savePrefs:(id)sender {
  NSLog(@"Saving preferences.");
  [defController save:self];
    [[NSNotificationCenter defaultCenter]
        postNotificationName: @"disconnectAll" object: nil];
    [[NSNotificationCenter defaultCenter]
        postNotificationName: @"connect"
        object: [[NSUserDefaults standardUserDefaults] objectForKey:@"location"]];
 
  [[self window] orderOut:self];
}
 
@end