public
Description: A buildbot GUI for OS X
Homepage: http://code.google.com/p/buildwatch/
Clone URL: git://github.com/dustin/buildwatch.git
Search Repo:
buildwatch / PrefController.m
100644 26 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
//
// 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