Permalink
Browse files

Initial commit. Simple OS X GUI wrapper for ShairPort

  • Loading branch information...
0 parents commit 771545ae6a905b068f0fe95b7d8047f3489e8f59 @rcarlsen committed Apr 20, 2011
20 .gitignore
@@ -0,0 +1,20 @@
+# xcode noise
+build/*
+*.pbxuser
+*.mode1v3
+*.mode2v3
+#Info.plist
+#*.xcodeproj
+*.xcworkspace
+xcuserdata*
+
+# old skool
+.svn
+
+# osx noise
+.DS_Store
+profile
+
+# ignore other object files
+*.o
+
33 Classes/Controllers/AboutPanelController.h
@@ -0,0 +1,33 @@
+//
+// AboutPanelController.h
+// This file is part of ShairPortMenu.
+//
+// A Simple OS X GUI wrapper for ShairPort / HairTunes
+//
+// Copyright 2011 Robert Carlsen.
+//
+// ShairPortMenu is free software: you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by
+// the Free Software Foundation, either version 3 of the License, or
+// (at your option) any later version.
+//
+// ShairPortMenu is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public License
+// along with ShairPortMenu. If not, see <http://www.gnu.org/licenses/>.
+//
+
+#import <Cocoa/Cocoa.h>
+
+
+@interface AboutPanelController : NSWindowController {
+@private
+ IBOutlet NSTextView *aboutTextView;
+ IBOutlet NSTextField *versionLabel;
+}
+
+@property(nonatomic,retain)IBOutlet NSTextField *versionLabel;
+@end
67 Classes/Controllers/AboutPanelController.m
@@ -0,0 +1,67 @@
+//
+// AboutPanelController.m
+// This file is part of ShairPortMenu.
+//
+// A Simple OS X GUI wrapper for ShairPort / HairTunes
+//
+// Copyright 2011 Robert Carlsen.
+//
+// ShairPortMenu is free software: you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by
+// the Free Software Foundation, either version 3 of the License, or
+// (at your option) any later version.
+//
+// ShairPortMenu is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public License
+// along with ShairPortMenu. If not, see <http://www.gnu.org/licenses/>.
+//
+
+#import "AboutPanelController.h"
+
+
+@implementation AboutPanelController
+@synthesize versionLabel;
+
+- (id)initWithWindow:(NSWindow *)window
+{
+ self = [super initWithWindow:window];
+ if (self) {
+ // Initialization code here.
+ }
+
+ return self;
+}
+
+- (void)dealloc
+{
+ self.versionLabel = nil;
+
+ [super dealloc];
+}
+
+- (void)windowDidLoad
+{
+ [super windowDidLoad];
+
+ [self.versionLabel setStringValue:[NSString stringWithFormat:NSLocalizedString(@"Version: %@","Version label"),kSPMVersion]];
+
+ // set up the about text:
+ NSBundle *bundle = [NSBundle mainBundle];
+ NSString *aboutTextPath = [bundle pathForResource:@"about" ofType:@"rtf"];
+ [aboutTextView readRTFDFromFile:aboutTextPath];
+
+ [aboutTextView setAutomaticLinkDetectionEnabled:YES];
+ [aboutTextView setAutomaticDataDetectionEnabled:YES];
+
+ [aboutTextView setLinkTextAttributes:[NSDictionary dictionaryWithObjectsAndKeys:
+ [NSCursor pointingHandCursor], NSCursorAttributeName,
+ [NSNumber numberWithInt:NSUnderlineStyleSingle], NSUnderlineStyleAttributeName,
+ [NSColor darkGrayColor], NSForegroundColorAttributeName,
+ nil]];
+}
+
+@end
44 Classes/Controllers/ShairPortController.h
@@ -0,0 +1,44 @@
+//
+// ShairPortController.h
+// This file is part of ShairPortMenu.
+//
+// A Simple OS X GUI wrapper for ShairPort / HairTunes
+//
+// Copyright 2011 Robert Carlsen.
+//
+// ShairPortMenu is free software: you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by
+// the Free Software Foundation, either version 3 of the License, or
+// (at your option) any later version.
+//
+// ShairPortMenu is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public License
+// along with ShairPortMenu. If not, see <http://www.gnu.org/licenses/>.
+//
+
+#import <Foundation/Foundation.h>
+@class ShairPortModel;
+
+@interface ShairPortController : NSObject {
+ ShairPortModel *shairportModel;
+ id delegate;
+
+ NSTask *shairportTask;
+ NSFileHandle *readFile;
+}
+
+@property(nonatomic,retain)NSTask *shairportTask;
+@property(assign)id delegate;
+
+-(void)setServerRunning:(BOOL)state;
+
+@end
+
+@protocol ShairPortControllerDelegate <NSObject>
+-(void)shairPortStarted;
+-(void)shairPortStopped;
+@end
143 Classes/Controllers/ShairPortController.m
@@ -0,0 +1,143 @@
+//
+// ShairPortController.m
+// This file is part of ShairPortMenu.
+//
+// A Simple OS X GUI wrapper for ShairPort / HairTunes
+//
+// Copyright 2011 Robert Carlsen.
+//
+// ShairPortMenu is free software: you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by
+// the Free Software Foundation, either version 3 of the License, or
+// (at your option) any later version.
+//
+// ShairPortMenu is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public License
+// along with ShairPortMenu. If not, see <http://www.gnu.org/licenses/>.
+//
+
+#import "ShairPortController.h"
+#import "ShairPortMenuAppDelegate.h"
+#import "ShairPortModel.h"
+
+@implementation ShairPortController
+
+@synthesize shairportTask, delegate;
+
+- (id)init
+{
+ self = [super init];
+ if (self) {
+ // Initialization code here.
+ shairportModel = [(ShairPortMenuAppDelegate*)[NSApp delegate] shairportModel];
+
+ [[NSNotificationCenter defaultCenter] addObserver:self
+ selector:@selector(incomingData:)
+ name:NSFileHandleDataAvailableNotification object:nil];
+
+ [[NSNotificationCenter defaultCenter] addObserver:self
+ selector:@selector(processStopped:)
+ name:NSTaskDidTerminateNotification object:nil];
+
+ }
+
+ return self;
+}
+
+- (void)dealloc
+{
+ delegate = nil;
+
+ [super dealloc];
+}
+
+
+
+-(void)setServerRunning:(BOOL)state;
+{
+ if(state) {
+ if (shairportTask == nil) {
+ shairportTask = [[NSTask alloc] init];
+
+ NSBundle *bundle = [NSBundle mainBundle];
+ NSString *shairportPath;
+ shairportPath = [bundle pathForResource:@"shairport" ofType:@"pl"];
+
+ [shairportTask setLaunchPath: shairportPath];
+
+ // TODO: look for other instances, then kill them?
+ // ps axwww|grep -v grep |grep shairport.pl
+
+ // add args for hostname {optionally, password}
+ NSMutableArray *args = [NSMutableArray arrayWithCapacity:4];
+ NSString *name = shairportModel.serverName;
+ if (name == nil || [name isEqualToString:@""]) {
+ name = [[NSProcessInfo processInfo] hostName];
+ }
+ [args addObject:@"--apname"];
+ [args addObject:name];
+
+ if (shairportModel.usePassword) {
+ [args addObject:@"--password"];
+ [args addObject:shairportModel.serverPassword];
+ }
+
+ [shairportTask setArguments:args];
+ NSLog(@"command: %@",[[shairportTask arguments] description]);
+
+ NSPipe *shairportPipe = [NSPipe pipe];
+ readFile = [shairportPipe fileHandleForReading];
+ [readFile waitForDataInBackgroundAndNotify];
+
+ [shairportTask setStandardOutput:shairportPipe];
+ [shairportTask launch];
+
+ // fire off a message so the app delegate can update the menu
+ if ([delegate respondsToSelector:@selector(shairPortStarted)]) {
+ [delegate shairPortStarted];
+ }
+ }
+ }
+ else {
+ [shairportTask terminate];
+ [shairportTask release]; shairportTask = nil;
+ }
+}
+
+#pragma mark - Notification handlers
+-(void)incomingData:(NSNotification*)notification
+{
+ // TODO: parse the console messages
+ // look for pertinent messages...namely connection events and status updates.
+ // can we get song information from the stream?
+
+ NSData *incomingData = readFile.availableData;
+ NSString *logString = [[NSString alloc] initWithData:incomingData encoding:NSUTF8StringEncoding];
+ NSLog(@"log: %@",logString);
+
+
+ // look for messages:
+ // REQ: TEARDOWN
+ // ***CHILD EXITED*** disconnection event
+ // new connection from fe80::e2f8:47ff:fe08:f2aa
+
+ [logString release];
+}
+
+-(void)processStopped:(NSNotification*)notification;
+{
+ NSLog(@"the task terminated");
+ [shairportTask release]; shairportTask = nil;
+
+ // tell the app delegate to update the UI
+ if ([delegate respondsToSelector:@selector(shairPortStopped)]) {
+ [delegate shairPortStopped];
+ }
+}
+
+
+@end
38 Classes/Controllers/ShairPreferencesController.h
@@ -0,0 +1,38 @@
+//
+// ShairPreferencesController.h
+// This file is part of ShairPortMenu.
+//
+// A Simple OS X GUI wrapper for ShairPort / HairTunes
+//
+// Copyright 2011 Robert Carlsen.
+//
+// ShairPortMenu is free software: you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by
+// the Free Software Foundation, either version 3 of the License, or
+// (at your option) any later version.
+//
+// ShairPortMenu is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public License
+// along with ShairPortMenu. If not, see <http://www.gnu.org/licenses/>.
+//
+
+#import <Cocoa/Cocoa.h>
+
+
+@interface ShairPreferencesController : NSWindowController {
+ IBOutlet id model;
+
+ IBOutlet NSTextField *serverNameField;
+ IBOutlet NSTextField *serverPasswordField;
+ IBOutlet NSButton *serverUsePasswordButton;
+}
+
+@property(assign)IBOutlet id model;
+
+-(IBAction)savePreferences:(id)sender;
+
+@end
90 Classes/Controllers/ShairPreferencesController.m
@@ -0,0 +1,90 @@
+//
+// ShairPreferencesController.m
+// This file is part of ShairPortMenu.
+//
+// A Simple OS X GUI wrapper for ShairPort / HairTunes
+//
+// Copyright 2011 Robert Carlsen.
+//
+// ShairPortMenu is free software: you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by
+// the Free Software Foundation, either version 3 of the License, or
+// (at your option) any later version.
+//
+// ShairPortMenu is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public License
+// along with ShairPortMenu. If not, see <http://www.gnu.org/licenses/>.
+//
+
+#import "ShairPreferencesController.h"
+
+#import "ShairPortMenuAppDelegate.h"
+#import "ShairPortModel.h"
+
+@implementation ShairPreferencesController
+@synthesize model;
+
+- (id)initWithWindow:(NSWindow *)window
+{
+ self = [super initWithWindow:window];
+ if (self) {
+ // Initialization code here.
+ model = (ShairPortModel*)[(ShairPortMenuAppDelegate*)[NSApp delegate] shairportModel];
+ }
+
+ return self;
+}
+
+- (void)dealloc
+{
+ [super dealloc];
+}
+
+- (void)windowDidLoad
+{
+ [super windowDidLoad];
+
+ [serverNameField.cell setPlaceholderString:[[NSProcessInfo processInfo] hostName]];
+ [serverNameField setStringValue:[model serverName]];
+
+ [serverPasswordField setStringValue:[model serverPassword]];
+ [serverUsePasswordButton setState:[model usePassword]];
+}
+
+
+-(IBAction)savePreferences:(id)sender;
+{
+ NSLog(@"saving prefs");
+ NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults];
+
+ // the values for the prefs have bindings to the defaults...
+ // do we have to manually read them back in?
+
+ [model setServerPassword:serverPasswordField.stringValue];
+ [model setServerName:serverNameField.stringValue];
+ [model setUsePassword:(BOOL)serverUsePasswordButton.state];
+
+ [defaults setValue:[model serverName] forKey:@"SPServerName"];
+ [defaults setValue:[model serverPassword] forKey:@"SPServerPassword"];
+ [defaults setValue:[NSNumber numberWithBool:[model usePassword]] forKey:@"SPUsePassword"];
+
+ [defaults synchronize];
+
+ [self.window performClose:nil];
+
+ // have to restart the server if the values have changed.
+// if ([shairportTask isRunning]) {
+// [self setServerRunning:NO];
+//
+// dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_LOW, 0), ^(void) {
+// sleep(1);
+// [self setServerRunning:YES];
+// });
+// }
+}
+
+@end
36 Classes/Models/ShairPortModel.h
@@ -0,0 +1,36 @@
+//
+// ShairPortModel.h
+// This file is part of ShairPortMenu.
+//
+// A Simple OS X GUI wrapper for ShairPort / HairTunes
+//
+// Copyright 2011 Robert Carlsen.
+//
+// ShairPortMenu is free software: you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by
+// the Free Software Foundation, either version 3 of the License, or
+// (at your option) any later version.
+//
+// ShairPortMenu is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public License
+// along with ShairPortMenu. If not, see <http://www.gnu.org/licenses/>.
+//
+
+#import <Foundation/Foundation.h>
+
+
+@interface ShairPortModel : NSObject {
+ NSString *serverName;
+ NSString *serverPassword;
+ BOOL usePassword;
+}
+
+@property(copy)NSString *serverName;
+@property(copy)NSString *serverPassword;
+@property BOOL usePassword;
+
+@end
56 Classes/Models/ShairPortModel.m
@@ -0,0 +1,56 @@
+//
+// ShairPortModel.m
+// This file is part of ShairPortMenu.
+//
+// A Simple OS X GUI wrapper for ShairPort / HairTunes
+//
+// Copyright 2011 Robert Carlsen.
+//
+// ShairPortMenu is free software: you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by
+// the Free Software Foundation, either version 3 of the License, or
+// (at your option) any later version.
+//
+// ShairPortMenu is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public License
+// along with ShairPortMenu. If not, see <http://www.gnu.org/licenses/>.
+//
+
+#import "ShairPortModel.h"
+
+
+@implementation ShairPortModel
+
+@synthesize serverName, serverPassword, usePassword;
+
+-(id)init;
+{
+ self = [super init];
+ if(self) {
+ // set up the defaults:
+ // cleartext passwd:
+ NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults];
+ [defaults registerDefaults:[NSDictionary dictionaryWithContentsOfFile:[[NSBundle mainBundle] pathForResource:@"Defaults" ofType:@"plist"]]];
+
+ // init the model
+ // TODO: use coding to directly archive the model
+ self.serverName = [defaults stringForKey:@"SPServerName"];
+ self.serverPassword = [defaults stringForKey:@"SPServerPassword"];
+ self.usePassword = [defaults boolForKey:@"SPUsePassword"];
+ }
+ return self;
+}
+
+-(void)dealloc;
+{
+ [serverName release];
+ [serverPassword release];
+
+ [super dealloc];
+}
+
+@end
54 Classes/ShairPortMenuAppDelegate.h
@@ -0,0 +1,54 @@
+//
+// ShairPortMenuAppDelegate.h
+// This file is part of ShairPortMenu.
+//
+// A Simple OS X GUI wrapper for ShairPort / HairTunes
+//
+// Copyright 2011 Robert Carlsen.
+//
+// ShairPortMenu is free software: you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by
+// the Free Software Foundation, either version 3 of the License, or
+// (at your option) any later version.
+//
+// ShairPortMenu is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public License
+// along with ShairPortMenu. If not, see <http://www.gnu.org/licenses/>.
+//
+
+
+
+#import <Cocoa/Cocoa.h>
+
+#import "ShairPortController.h"
+@class ShairPortModel;
+
+
+@interface ShairPortMenuAppDelegate : NSObject
+<NSApplicationDelegate, ShairPortControllerDelegate>
+{
+ NSWindow *window;
+
+ NSStatusItem *statusItem;
+ IBOutlet NSMenu *statusMenu;
+ IBOutlet NSMenuItem *controlMenuItem;
+ IBOutlet NSMenuItem *statusMenuItem;
+
+ id aboutPanel;
+ id preferencesWindow;
+
+ id shairPortController;
+}
+
+@property (assign) IBOutlet NSWindow *window;
+@property(nonatomic,retain)ShairPortModel *shairportModel;
+
+-(IBAction)listeningMenu:(id)sender;
+-(IBAction)openAboutPanel:(id)sender;
+-(IBAction)openPreferencesWindow:(id)sender;
+
+@end
167 Classes/ShairPortMenuAppDelegate.m
@@ -0,0 +1,167 @@
+//
+// ShairPortMenuAppDelegate.m
+// This file is part of ShairPortMenu.
+//
+// A Simple OS X GUI wrapper for ShairPort / HairTunes
+//
+// Copyright 2011 Robert Carlsen.
+//
+// ShairPortMenu is free software: you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by
+// the Free Software Foundation, either version 3 of the License, or
+// (at your option) any later version.
+//
+// ShairPortMenu is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public License
+// along with ShairPortMenu. If not, see <http://www.gnu.org/licenses/>.
+//
+
+#import "ShairPortMenuAppDelegate.h"
+
+#import "ShairPortModel.h"
+#import "ShairPortController.h"
+
+#import "ShairPreferencesController.h"
+#import "AboutPanelController.h"
+
+
+@interface ShairPortMenuAppDelegate (private)
+-(void)updateMenuForServer:(BOOL)isOn;
+-(void)setTooltipStatus:(BOOL)_onOff;
+@end
+
+
+@implementation ShairPortMenuAppDelegate
+
+@synthesize window, shairportModel;
+
+
+#pragma mark - Application Delegate
+- (void)applicationDidFinishLaunching:(NSNotification *)aNotification {
+ // Insert code here to initialize your application
+
+ // set up the app data model
+ // TODO: use coding
+ self.shairportModel = [[ShairPortModel alloc] init];
+ shairPortController = [[ShairPortController alloc] init];
+ [shairPortController setDelegate:self];
+}
+
+-(void)applicationWillTerminate:(NSNotification *)notification
+{
+ [shairPortController setServerRunning:NO];
+
+ // save defaults, then cleanup;
+ [shairPortController release];
+ [shairportModel release];
+
+}
+
+-(void)awakeFromNib{
+ statusItem = [[[NSStatusBar systemStatusBar] statusItemWithLength:NSVariableStatusItemLength] retain];
+ [statusItem sendActionOn:NSLeftMouseDraggedMask];
+ [statusItem setMenu:statusMenu];
+ [statusItem setHighlightMode:YES];
+ [statusItem setAlternateImage:[NSImage imageNamed:@"hairplay-over"]];
+
+
+ [self updateMenuForServer:[shairPortController shairportTask].isRunning];
+}
+
+
+#pragma mark - Private methods
+-(void)updateMenuForServer:(BOOL)isOn;
+{
+ [self setTooltipStatus:isOn];
+
+ if(isOn){
+ [statusItem setImage:[NSImage imageNamed:@"hairplay-on"]];
+
+ [controlMenuItem setTitle:NSLocalizedString(@"Turn ShairPort off", "Menu item title")];
+ [controlMenuItem setState:1];
+ [statusMenuItem setTitle:[NSString stringWithFormat:
+ NSLocalizedString(@"ShairPort: %@", "Menu item title"),
+ shairportModel.serverName]];
+ }
+ else {
+ [self setTooltipStatus:isOn];
+
+ [statusItem setImage:[NSImage imageNamed:@"hairplay-off"]];
+ [controlMenuItem setTitle:NSLocalizedString(@"Turn ShairPort on", "Menu item title")];
+ [controlMenuItem setState:0];
+ [statusMenuItem setTitle:NSLocalizedString(@"ShairPort: off", "Menu item title")];
+ }
+}
+
+
+
+-(void)setTooltipStatus:(BOOL)_onOff;
+{
+ NSString *tooltipTitle = NSLocalizedString(@"ShairPort Control", "Menulet tool tip title");
+ NSString *tooltipStatus = [NSString stringWithFormat:
+ NSLocalizedString(@"HairTunes is %@", "tooltip status"),
+ (_onOff) ? @"on" : @"off" ];
+ [statusItem setToolTip:[NSString stringWithFormat:@"%@\n%@",tooltipTitle,tooltipStatus]];
+}
+
+
+#pragma mark - Actions
+-(IBAction)listeningMenu:(id)sender;
+{
+ NSLog(@"Menu option: %ld",[sender state]);
+ switch ([sender state]) {
+ case 0:
+ [shairPortController setServerRunning:YES];
+ break;
+ case 1:
+ [shairPortController setServerRunning:NO];
+ break;
+ case 2:
+ break;
+ default:
+ break;
+ }
+}
+
+-(IBAction)openAboutPanel:(id)sender;
+{
+ NSLog(@"open about panel");
+
+ if (aboutPanel == nil) {
+ aboutPanel = [[AboutPanelController alloc] initWithWindowNibName:@"AboutPanel"];
+ }
+
+ [aboutPanel showWindow:nil];
+ [NSApp activateIgnoringOtherApps:YES];
+}
+
+-(IBAction)openPreferencesWindow:(id)sender;
+{
+ NSLog(@"open prefs window");
+
+ if (preferencesWindow == nil) {
+ preferencesWindow = [[ShairPreferencesController alloc] initWithWindowNibName:@"ShairPreferencesWindow"];
+ }
+
+ [preferencesWindow showWindow:nil];
+ [NSApp activateIgnoringOtherApps:YES];
+}
+
+
+#pragma mark - ShairPortController delegate
+-(void)shairPortStarted;
+{
+ [self updateMenuForServer:YES];
+}
+
+-(void)shairPortStopped;
+{
+ [self updateMenuForServer:NO];
+}
+
+
+@end
485 Classes/Views/AboutPanel.xib
@@ -0,0 +1,485 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<archive type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="7.10">
+ <data>
+ <int key="IBDocument.SystemTarget">1060</int>
+ <string key="IBDocument.SystemVersion">10J3250</string>
+ <string key="IBDocument.InterfaceBuilderVersion">1306</string>
+ <string key="IBDocument.AppKitVersion">1038.35</string>
+ <string key="IBDocument.HIToolboxVersion">461.00</string>
+ <object class="NSMutableDictionary" key="IBDocument.PluginVersions">
+ <string key="NS.key.0">com.apple.InterfaceBuilder.CocoaPlugin</string>
+ <string key="NS.object.0">1306</string>
+ </object>
+ <object class="NSArray" key="IBDocument.IntegratedClassDependencies">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <string>NSView</string>
+ <string>NSTextField</string>
+ <string>NSScrollView</string>
+ <string>NSWindowTemplate</string>
+ <string>NSTextFieldCell</string>
+ <string>NSTextView</string>
+ <string>NSScroller</string>
+ <string>NSCustomObject</string>
+ </object>
+ <object class="NSArray" key="IBDocument.PluginDependencies">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <string>com.apple.InterfaceBuilder.CocoaPlugin</string>
+ </object>
+ <object class="NSMutableDictionary" key="IBDocument.Metadata">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <object class="NSArray" key="dict.sortedKeys" id="0">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ </object>
+ <reference key="dict.values" ref="0"/>
+ </object>
+ <object class="NSMutableArray" key="IBDocument.RootObjects" id="1000">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <object class="NSCustomObject" id="1001">
+ <string key="NSClassName">AboutPanelController</string>
+ </object>
+ <object class="NSCustomObject" id="1003">
+ <string key="NSClassName">FirstResponder</string>
+ </object>
+ <object class="NSCustomObject" id="1004">
+ <string key="NSClassName">NSApplication</string>
+ </object>
+ <object class="NSWindowTemplate" id="166824799">
+ <int key="NSWindowStyleMask">271</int>
+ <int key="NSWindowBacking">2</int>
+ <string key="NSWindowRect">{{102, 528}, {431, 230}}</string>
+ <int key="NSWTFlags">-1535639552</int>
+ <string key="NSWindowTitle">About ShairPort Menu</string>
+ <string key="NSWindowClass">NSPanel</string>
+ <nil key="NSViewClass"/>
+ <string key="NSWindowContentMaxSize">{600, 400}</string>
+ <string key="NSWindowContentMinSize">{431, 200}</string>
+ <object class="NSView" key="NSWindowView" id="851737080">
+ <reference key="NSNextResponder"/>
+ <int key="NSvFlags">256</int>
+ <object class="NSMutableArray" key="NSSubviews">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <object class="NSTextField" id="1018652184">
+ <reference key="NSNextResponder" ref="851737080"/>
+ <int key="NSvFlags">265</int>
+ <string key="NSFrame">{{277, 218}, {135, 11}}</string>
+ <reference key="NSSuperview" ref="851737080"/>
+ <reference key="NSWindow"/>
+ <reference key="NSNextKeyView" ref="1035560772"/>
+ <int key="NSViewLayerContentsRedrawPolicy">2</int>
+ <bool key="NSEnabled">YES</bool>
+ <object class="NSTextFieldCell" key="NSCell" id="885947397">
+ <int key="NSCellFlags">68288064</int>
+ <int key="NSCellFlags2">71304192</int>
+ <string key="NSContents">#version</string>
+ <object class="NSFont" key="NSSupport">
+ <string key="NSName">LucidaGrande</string>
+ <double key="NSSize">9</double>
+ <int key="NSfFlags">16</int>
+ </object>
+ <reference key="NSControlView" ref="1018652184"/>
+ <object class="NSColor" key="NSBackgroundColor">
+ <int key="NSColorSpace">6</int>
+ <string key="NSCatalogName">System</string>
+ <string key="NSColorName">controlColor</string>
+ <object class="NSColor" key="NSColor" id="353341875">
+ <int key="NSColorSpace">3</int>
+ <bytes key="NSWhite">MC42NjY2NjY2NjY3AA</bytes>
+ </object>
+ </object>
+ <object class="NSColor" key="NSTextColor">
+ <int key="NSColorSpace">6</int>
+ <string key="NSCatalogName">System</string>
+ <string key="NSColorName">controlTextColor</string>
+ <object class="NSColor" key="NSColor" id="180817943">
+ <int key="NSColorSpace">3</int>
+ <bytes key="NSWhite">MAA</bytes>
+ </object>
+ </object>
+ </object>
+ </object>
+ <object class="NSScrollView" id="1035560772">
+ <reference key="NSNextResponder" ref="851737080"/>
+ <int key="NSvFlags">274</int>
+ <object class="NSMutableArray" key="NSSubviews">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <object class="NSClipView" id="725516723">
+ <reference key="NSNextResponder" ref="1035560772"/>
+ <int key="NSvFlags">2304</int>
+ <object class="NSMutableArray" key="NSSubviews">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <object class="NSTextView" id="83581019">
+ <reference key="NSNextResponder" ref="725516723"/>
+ <int key="NSvFlags">2322</int>
+ <string key="NSFrameSize">{389, 0}</string>
+ <reference key="NSSuperview" ref="725516723"/>
+ <reference key="NSWindow"/>
+ <reference key="NSNextKeyView"/>
+ <int key="NSViewLayerContentsRedrawPolicy">2</int>
+ <object class="NSTextContainer" key="NSTextContainer" id="969239895">
+ <object class="NSLayoutManager" key="NSLayoutManager">
+ <object class="NSTextStorage" key="NSTextStorage">
+ <object class="NSMutableString" key="NSString">
+ <characters key="NS.bytes"/>
+ </object>
+ <nil key="NSDelegate"/>
+ </object>
+ <object class="NSMutableArray" key="NSTextContainers">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <reference ref="969239895"/>
+ </object>
+ <int key="NSLMFlags">134</int>
+ <nil key="NSDelegate"/>
+ </object>
+ <reference key="NSTextView" ref="83581019"/>
+ <double key="NSWidth">389</double>
+ <int key="NSTCFlags">1</int>
+ </object>
+ <object class="NSTextViewSharedData" key="NSSharedData">
+ <int key="NSFlags">46149509</int>
+ <int key="NSTextCheckingTypes">0</int>
+ <nil key="NSMarkedAttributes"/>
+ <object class="NSColor" key="NSBackgroundColor" id="358233471">
+ <int key="NSColorSpace">6</int>
+ <string key="NSCatalogName">System</string>
+ <string key="NSColorName">textBackgroundColor</string>
+ <object class="NSColor" key="NSColor">
+ <int key="NSColorSpace">3</int>
+ <bytes key="NSWhite">MQA</bytes>
+ </object>
+ </object>
+ <object class="NSDictionary" key="NSSelectedAttributes">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <object class="NSArray" key="dict.sortedKeys">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <string>NSBackgroundColor</string>
+ <string>NSColor</string>
+ </object>
+ <object class="NSMutableArray" key="dict.values">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <object class="NSColor">
+ <int key="NSColorSpace">6</int>
+ <string key="NSCatalogName">System</string>
+ <string key="NSColorName">selectedTextBackgroundColor</string>
+ <reference key="NSColor" ref="353341875"/>
+ </object>
+ <object class="NSColor">
+ <int key="NSColorSpace">6</int>
+ <string key="NSCatalogName">System</string>
+ <string key="NSColorName">selectedTextColor</string>
+ <reference key="NSColor" ref="180817943"/>
+ </object>
+ </object>
+ </object>
+ <reference key="NSInsertionColor" ref="180817943"/>
+ <object class="NSDictionary" key="NSLinkAttributes">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <object class="NSArray" key="dict.sortedKeys">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <string>NSColor</string>
+ <string>NSCursor</string>
+ <string>NSUnderline</string>
+ </object>
+ <object class="NSMutableArray" key="dict.values">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <object class="NSColor">
+ <int key="NSColorSpace">1</int>
+ <bytes key="NSRGB">MCAwIDEAA</bytes>
+ </object>
+ <object class="NSCursor">
+ <string key="NSHotSpot">{8, -8}</string>
+ <int key="NSCursorType">13</int>
+ </object>
+ <integer value="1"/>
+ </object>
+ </object>
+ <nil key="NSDefaultParagraphStyle"/>
+ </object>
+ <int key="NSTVFlags">6</int>
+ <string key="NSMaxSize">{600, 1e+07}</string>
+ <string key="NSMinize">{200, 0}</string>
+ <nil key="NSDelegate"/>
+ </object>
+ </object>
+ <string key="NSFrame">{{1, 1}, {389, 188}}</string>
+ <reference key="NSSuperview" ref="1035560772"/>
+ <reference key="NSWindow"/>
+ <reference key="NSNextKeyView" ref="83581019"/>
+ <int key="NSViewLayerContentsRedrawPolicy">2</int>
+ <reference key="NSDocView" ref="83581019"/>
+ <reference key="NSBGColor" ref="358233471"/>
+ <object class="NSCursor" key="NSCursor">
+ <string key="NSHotSpot">{4, -5}</string>
+ <int key="NSCursorType">1</int>
+ </object>
+ <int key="NScvFlags">4</int>
+ </object>
+ <object class="NSScroller" id="152104600">
+ <reference key="NSNextResponder" ref="1035560772"/>
+ <int key="NSvFlags">-2147483392</int>
+ <string key="NSFrame">{{-100, -100}, {15, 225}}</string>
+ <reference key="NSSuperview" ref="1035560772"/>
+ <reference key="NSWindow"/>
+ <reference key="NSNextKeyView" ref="822743387"/>
+ <int key="NSViewLayerContentsRedrawPolicy">2</int>
+ <reference key="NSTarget" ref="1035560772"/>
+ <string key="NSAction">_doScroller:</string>
+ <double key="NSCurValue">1</double>
+ <double key="NSPercent">0.85256409645080566</double>
+ </object>
+ <object class="NSScroller" id="822743387">
+ <reference key="NSNextResponder" ref="1035560772"/>
+ <int key="NSvFlags">-2147483392</int>
+ <string key="NSFrame">{{-100, -100}, {87, 18}}</string>
+ <reference key="NSSuperview" ref="1035560772"/>
+ <reference key="NSWindow"/>
+ <reference key="NSNextKeyView" ref="725516723"/>
+ <int key="NSViewLayerContentsRedrawPolicy">2</int>
+ <int key="NSsFlags">1</int>
+ <reference key="NSTarget" ref="1035560772"/>
+ <string key="NSAction">_doScroller:</string>
+ <double key="NSCurValue">1</double>
+ <double key="NSPercent">0.94565218687057495</double>
+ </object>
+ </object>
+ <string key="NSFrame">{{20, 20}, {391, 190}}</string>
+ <reference key="NSSuperview" ref="851737080"/>
+ <reference key="NSWindow"/>
+ <reference key="NSNextKeyView" ref="152104600"/>
+ <int key="NSViewLayerContentsRedrawPolicy">2</int>
+ <int key="NSsFlags">530</int>
+ <reference key="NSVScroller" ref="152104600"/>
+ <reference key="NSHScroller" ref="822743387"/>
+ <reference key="NSContentView" ref="725516723"/>
+ </object>
+ </object>
+ <string key="NSFrame">{{7, 11}, {431, 230}}</string>
+ <reference key="NSSuperview"/>
+ <reference key="NSWindow"/>
+ <reference key="NSNextKeyView" ref="1018652184"/>
+ <int key="NSViewLayerContentsRedrawPolicy">2</int>
+ </object>
+ <string key="NSScreenRect">{{0, 0}, {1440, 878}}</string>
+ <string key="NSMinSize">{431, 222}</string>
+ <string key="NSMaxSize">{600, 422}</string>
+ </object>
+ </object>
+ <object class="IBObjectContainer" key="IBDocument.Objects">
+ <object class="NSMutableArray" key="connectionRecords">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <object class="IBConnectionRecord">
+ <object class="IBOutletConnection" key="connection">
+ <string key="label">window</string>
+ <reference key="source" ref="1001"/>
+ <reference key="destination" ref="166824799"/>
+ </object>
+ <int key="connectionID">9</int>
+ </object>
+ <object class="IBConnectionRecord">
+ <object class="IBOutletConnection" key="connection">
+ <string key="label">aboutTextView</string>
+ <reference key="source" ref="1001"/>
+ <reference key="destination" ref="83581019"/>
+ </object>
+ <int key="connectionID">10</int>
+ </object>
+ <object class="IBConnectionRecord">
+ <object class="IBOutletConnection" key="connection">
+ <string key="label">versionLabel</string>
+ <reference key="source" ref="1001"/>
+ <reference key="destination" ref="1018652184"/>
+ </object>
+ <int key="connectionID">13</int>
+ </object>
+ </object>
+ <object class="IBMutableOrderedSet" key="objectRecords">
+ <object class="NSArray" key="orderedObjects">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <object class="IBObjectRecord">
+ <int key="objectID">0</int>
+ <reference key="object" ref="0"/>
+ <reference key="children" ref="1000"/>
+ <nil key="parent"/>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">-2</int>
+ <reference key="object" ref="1001"/>
+ <reference key="parent" ref="0"/>
+ <string key="objectName">File's Owner</string>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">-1</int>
+ <reference key="object" ref="1003"/>
+ <reference key="parent" ref="0"/>
+ <string key="objectName">First Responder</string>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">-3</int>
+ <reference key="object" ref="1004"/>
+ <reference key="parent" ref="0"/>
+ <string key="objectName">Application</string>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">3</int>
+ <reference key="object" ref="166824799"/>
+ <object class="NSMutableArray" key="children">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <reference ref="851737080"/>
+ </object>
+ <reference key="parent" ref="0"/>
+ <string key="objectName">Panel - About Window</string>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">4</int>
+ <reference key="object" ref="851737080"/>
+ <object class="NSMutableArray" key="children">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <reference ref="1035560772"/>
+ <reference ref="1018652184"/>
+ </object>
+ <reference key="parent" ref="166824799"/>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">5</int>
+ <reference key="object" ref="1035560772"/>
+ <object class="NSMutableArray" key="children">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <reference ref="83581019"/>
+ <reference ref="822743387"/>
+ <reference ref="152104600"/>
+ </object>
+ <reference key="parent" ref="851737080"/>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">6</int>
+ <reference key="object" ref="83581019"/>
+ <reference key="parent" ref="1035560772"/>
+ <string key="objectName">Text View</string>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">7</int>
+ <reference key="object" ref="822743387"/>
+ <reference key="parent" ref="1035560772"/>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">8</int>
+ <reference key="object" ref="152104600"/>
+ <reference key="parent" ref="1035560772"/>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">11</int>
+ <reference key="object" ref="1018652184"/>
+ <object class="NSMutableArray" key="children">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <reference ref="885947397"/>
+ </object>
+ <reference key="parent" ref="851737080"/>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">12</int>
+ <reference key="object" ref="885947397"/>
+ <reference key="parent" ref="1018652184"/>
+ </object>
+ </object>
+ </object>
+ <object class="NSMutableDictionary" key="flattenedProperties">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <object class="NSArray" key="dict.sortedKeys">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <string>-1.IBPluginDependency</string>
+ <string>-2.IBPluginDependency</string>
+ <string>-3.IBPluginDependency</string>
+ <string>11.IBPluginDependency</string>
+ <string>12.IBPluginDependency</string>
+ <string>3.IBPluginDependency</string>
+ <string>3.NSWindowTemplate.visibleAtLaunch</string>
+ <string>4.IBPluginDependency</string>
+ <string>5.IBPluginDependency</string>
+ <string>6.IBPluginDependency</string>
+ <string>7.IBPluginDependency</string>
+ <string>8.IBPluginDependency</string>
+ </object>
+ <object class="NSMutableArray" key="dict.values">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <string>com.apple.InterfaceBuilder.CocoaPlugin</string>
+ <string>com.apple.InterfaceBuilder.CocoaPlugin</string>
+ <string>com.apple.InterfaceBuilder.CocoaPlugin</string>
+ <string>com.apple.InterfaceBuilder.CocoaPlugin</string>
+ <string>com.apple.InterfaceBuilder.CocoaPlugin</string>
+ <string>com.apple.InterfaceBuilder.CocoaPlugin</string>
+ <boolean value="NO"/>
+ <string>com.apple.InterfaceBuilder.CocoaPlugin</string>
+ <string>com.apple.InterfaceBuilder.CocoaPlugin</string>
+ <string>com.apple.InterfaceBuilder.CocoaPlugin</string>
+ <string>com.apple.InterfaceBuilder.CocoaPlugin</string>
+ <string>com.apple.InterfaceBuilder.CocoaPlugin</string>
+ </object>
+ </object>
+ <object class="NSMutableDictionary" key="unlocalizedProperties">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <reference key="dict.sortedKeys" ref="0"/>
+ <reference key="dict.values" ref="0"/>
+ </object>
+ <nil key="activeLocalization"/>
+ <object class="NSMutableDictionary" key="localizations">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <reference key="dict.sortedKeys" ref="0"/>
+ <reference key="dict.values" ref="0"/>
+ </object>
+ <nil key="sourceID"/>
+ <int key="maxID">13</int>
+ </object>
+ <object class="IBClassDescriber" key="IBDocument.Classes">
+ <object class="NSMutableArray" key="referencedPartialClassDescriptions">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <object class="IBPartialClassDescription">
+ <string key="className">AboutPanelController</string>
+ <string key="superclassName">NSWindowController</string>
+ <object class="NSMutableDictionary" key="outlets">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <object class="NSArray" key="dict.sortedKeys">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <string>aboutTextView</string>
+ <string>versionLabel</string>
+ </object>
+ <object class="NSMutableArray" key="dict.values">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <string>NSTextView</string>
+ <string>NSTextField</string>
+ </object>
+ </object>
+ <object class="NSMutableDictionary" key="toOneOutletInfosByName">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <object class="NSArray" key="dict.sortedKeys">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <string>aboutTextView</string>
+ <string>versionLabel</string>
+ </object>
+ <object class="NSMutableArray" key="dict.values">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <object class="IBToOneOutletInfo">
+ <string key="name">aboutTextView</string>
+ <string key="candidateClassName">NSTextView</string>
+ </object>
+ <object class="IBToOneOutletInfo">
+ <string key="name">versionLabel</string>
+ <string key="candidateClassName">NSTextField</string>
+ </object>
+ </object>
+ </object>
+ <object class="IBClassDescriptionSource" key="sourceIdentifier">
+ <string key="majorKey">IBProjectSource</string>
+ <string key="minorKey">./Classes/AboutPanelController.h</string>
+ </object>
+ </object>
+ </object>
+ </object>
+ <int key="IBDocument.localizationMode">0</int>
+ <string key="IBDocument.TargetRuntimeIdentifier">IBCocoaFramework</string>
+ <object class="NSMutableDictionary" key="IBDocument.PluginDeclaredDevelopmentDependencies">
+ <string key="NS.key.0">com.apple.InterfaceBuilder.CocoaPlugin.InterfaceBuilder3</string>
+ <integer value="3000" key="NS.object.0"/>
+ </object>
+ <bool key="IBDocument.PluginDeclaredDependenciesTrackSystemTargetVersion">YES</bool>
+ <int key="IBDocument.defaultPropertyAccessControl">3</int>
+ </data>
+</archive>
3,902 Classes/Views/MainMenu.xib
3,902 additions, 0 deletions not shown because the diff is too large. Please use a local Git client to view these changes.
790 Classes/Views/ShairPreferencesWindow.xib
</
@@ -0,0 +1,790 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<archive type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="7.10">
+ <data>
+ <int key="IBDocument.SystemTarget">1060</int>
+ <string key="IBDocument.SystemVersion">10J3250</string>
+ <string key="IBDocument.InterfaceBuilderVersion">1306</string>
+ <string key="IBDocument.AppKitVersion">1038.35</string>
+ <string key="IBDocument.HIToolboxVersion">461.00</string>
+ <object class="NSMutableDictionary" key="IBDocument.PluginVersions">
+ <string key="NS.key.0">com.apple.InterfaceBuilder.CocoaPlugin</string>
+ <string key="NS.object.0">1306</string>
+ </object>
+ <object class="NSArray" key="IBDocument.IntegratedClassDependencies">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <string>NSView</string>
+ <string>NSCustomObject</string>
+ <string>NSSecureTextField</string>
+ <string>NSWindowTemplate</string>
+ <string>NSTextField</string>
+ <string>NSTextFieldCell</string>
+ <string>NSObjectController</string>
+ <string>NSButtonCell</string>
+ <string>NSButton</string>
+ <string>NSSecureTextFieldCell</string>
+ <string>NSBox</string>
+ </object>
+ <object class="NSArray" key="IBDocument.PluginDependencies">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <string>com.apple.InterfaceBuilder.CocoaPlugin</string>
+ </object>
+ <object class="NSMutableDictionary" key="IBDocument.Metadata">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <object class="NSArray" key="dict.sortedKeys" id="0">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ </object>
+ <reference key="dict.values" ref="0"/>
+ </object>
+ <object class="NSMutableArray" key="IBDocument.RootObjects" id="1000">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <object class="NSCustomObject" id="1001">
+ <string key="NSClassName">ShairPreferencesController</string>
+ </object>
+ <object class="NSCustomObject" id="1003">
+ <string key="NSClassName">FirstResponder</string>
+ </object>
+ <object class="NSCustomObject" id="1004">
+ <string key="NSClassName">NSApplication</string>
+ </object>
+ <object class="NSWindowTemplate" id="32674328">
+ <int key="NSWindowStyleMask">271</int>
+ <int key="NSWindowBacking">2</int>
+ <string key="NSWindowRect">{{173, 570}, {480, 206}}</string>
+ <int key="NSWTFlags">-1535639552</int>
+ <string key="NSWindowTitle">ShairPort Preferences</string>
+ <string key="NSWindowClass">NSWindow</string>
+ <nil key="NSViewClass"/>
+ <string key="NSWindowContentMaxSize">{600, 206}</string>
+ <string key="NSWindowContentMinSize">{300, 206}</string>
+ <object class="NSView" key="NSWindowView" id="412806513">
+ <reference key="NSNextResponder"/>
+ <int key="NSvFlags">256</int>
+ <object class="NSMutableArray" key="NSSubviews">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <object class="NSBox" id="243876952">
+ <reference key="NSNextResponder" ref="412806513"/>
+ <int key="NSvFlags">18</int>
+ <object class="NSMutableArray" key="NSSubviews">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <object class="NSView" id="639419835">
+ <reference key="NSNextResponder" ref="243876952"/>
+ <int key="NSvFlags">256</int>
+ <object class="NSMutableArray" key="NSSubviews">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <object class="NSTextField" id="1037686974">
+ <reference key="NSNextResponder" ref="639419835"/>
+ <int key="NSvFlags">268</int>
+ <string key="NSFrame">{{15, 101}, {93, 17}}</string>
+ <reference key="NSSuperview" ref="639419835"/>
+ <reference key="NSWindow"/>
+ <reference key="NSNextKeyView" ref="295223274"/>
+ <bool key="NSEnabled">YES</bool>
+ <object class="NSTextFieldCell" key="NSCell" id="438931567">
+ <int key="NSCellFlags">68288064</int>
+ <int key="NSCellFlags2">272630784</int>
+ <string key="NSContents">Display name:</string>
+ <object class="NSFont" key="NSSupport" id="431808118">
+ <string key="NSName">LucidaGrande</string>
+ <double key="NSSize">13</double>
+ <int key="NSfFlags">1044</int>
+ </object>
+ <reference key="NSControlView" ref="1037686974"/>
+ <object class="NSColor" key="NSBackgroundColor" id="469404510">
+ <int key="NSColorSpace">6</int>
+ <string key="NSCatalogName">System</string>
+ <string key="NSColorName">controlColor</string>
+ <object class="NSColor" key="NSColor">
+ <int key="NSColorSpace">3</int>
+ <bytes key="NSWhite">MC42NjY2NjY2NjY3AA</bytes>
+ </object>
+ </object>
+ <object class="NSColor" key="NSTextColor" id="1045030480">
+ <int key="NSColorSpace">6</int>
+ <string key="NSCatalogName">System</string>
+ <string key="NSColorName">controlTextColor</string>
+ <object class="NSColor" key="NSColor" id="882335151">
+ <int key="NSColorSpace">3</int>
+ <bytes key="NSWhite">MAA</bytes>
+ </object>
+ </object>
+ </object>
+ </object>
+ <object class="NSButton" id="427581775">
+ <reference key="NSNextResponder" ref="639419835"/>
+ <int key="NSvFlags">268</int>
+ <string key="NSFrame">{{113, 36}, {127, 18}}</string>
+ <reference key="NSSuperview" ref="639419835"/>
+ <reference key="NSWindow"/>
+ <reference key="NSNextKeyView" ref="1024331534"/>
+ <bool key="NSEnabled">YES</bool>
+ <object class="NSButtonCell" key="NSCell" id="607191293">
+ <int key="NSCellFlags">-2080244224</int>
+ <int key="NSCellFlags2">0</int>
+ <string key="NSContents">Enable Password</string>
+ <reference key="NSSupport" ref="431808118"/>
+ <reference key="NSControlView" ref="427581775"/>
+ <int key="NSButtonFlags">1211912703</int>
+ <int key="NSButtonFlags2">2</int>
+ <object class="NSCustomResource" key="NSNormalImage">
+ <string key="NSClassName">NSImage</string>
+ <string key="NSResourceName">NSSwitch</string>
+ </object>
+ <object class="NSButtonImageSource" key="NSAlternateImage">
+ <string key="NSImageName">NSSwitch</string>
+ </object>
+ <string key="NSAlternateContents"/>
+ <string key="NSKeyEquivalent"/>
+ <int key="NSPeriodicDelay">200</int>
+ <int key="NSPeriodicInterval">25</int>
+ </object>
+ </object>
+ <object class="NSTextField" id="274653452">
+ <reference key="NSNextResponder" ref="639419835"/>
+ <int key="NSvFlags">268</int>
+ <string key="NSFrame">{{15, 63}, {93, 17}}</string>
+ <reference key="NSSuperview" ref="639419835"/>
+ <reference key="NSWindow"/>
+ <reference key="NSNextKeyView" ref="285321870"/>
+ <bool key="NSEnabled">YES</bool>
+ <object class="NSTextFieldCell" key="NSCell" id="202874833">
+ <int key="NSCellFlags">68288064</int>
+ <int key="NSCellFlags2">272630784</int>
+ <string key="NSContents">Password:</string>
+ <reference key="NSSupport" ref="431808118"/>
+ <reference key="NSControlView" ref="274653452"/>
+ <reference key="NSBackgroundColor" ref="469404510"/>
+ <reference key="NSTextColor" ref="1045030480"/>
+ </object>
+ </object>
+ <object class="NSTextField" id="295223274">
+ <reference key="NSNextResponder" ref="639419835"/>
+ <int key="NSvFlags">266</int>
+ <string key="NSFrame">{{115, 98}, {311, 22}}</string>
+ <reference key="NSSuperview" ref="639419835"/>
+ <reference key="NSWindow"/>
+ <reference key="NSNextKeyView" ref="274653452"/>
+ <bool key="NSEnabled">YES</bool>
+ <object class="NSTextFieldCell" key="NSCell" id="369195893">
+ <int key="NSCellFlags">-1805517247</int>
+ <int key="NSCellFlags2">272631872</int>
+ <string key="NSContents"/>
+ <reference key="NSSupport" ref="431808118"/>
+ <reference key="NSControlView" ref="295223274"/>
+ <bool key="NSDrawsBackground">YES</bool>
+ <object class="NSColor" key="NSBackgroundColor" id="63205009">
+ <int key="NSColorSpace">6</int>
+ <string key="NSCatalogName">System</string>
+ <string key="NSColorName">textBackgroundColor</string>
+ <object class="NSColor" key="NSColor">
+ <int key="NSColorSpace">3</int>
+ <bytes key="NSWhite">MQA</bytes>
+ </object>
+ </object>
+ <object class="NSColor" key="NSTextColor" id="898092317">
+ <int key="NSColorSpace">6</int>
+ <string key="NSCatalogName">System</string>
+ <string key="NSColorName">textColor</string>
+ <reference key="NSColor" ref="882335151"/>
+ </object>
+ </object>
+ </object>
+ <object class="NSSecureTextField" id="285321870">
+ <reference key="NSNextResponder" ref="639419835"/>
+ <int key="NSvFlags">266</int>
+ <string key="NSFrame">{{115, 60}, {311, 22}}</string>
+ <reference key="NSSuperview" ref="639419835"/>
+ <reference key="NSWindow"/>
+ <reference key="NSNextKeyView" ref="427581775"/>
+ <bool key="NSEnabled">YES</bool>
+ <object class="NSSecureTextFieldCell" key="NSCell" id="136924926">
+ <int key="NSCellFlags">341966400</int>
+ <int key="NSCellFlags2">272631872</int>
+ <string key="NSContents"/>
+ <reference key="NSSupport" ref="431808118"/>
+ <reference key="NSControlView" ref="285321870"/>
+ <bool key="NSDrawsBackground">YES</bool>
+ <reference key="NSBackgroundColor" ref="63205009"/>
+ <reference key="NSTextColor" ref="898092317"/>
+ <object class="NSArray" key="NSAllowedInputLocales">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <string>NSAllRomanInputSourcesLocaleIdentifier</string>
+ </object>
+ </object>
+ </object>
+ <object class="NSTextField" id="1024331534">
+ <reference key="NSNextResponder" ref="639419835"/>
+ <int key="NSvFlags">289</int>
+ <string key="NSFrame">{{196, 14}, {253, 14}}</string>
+ <reference key="NSSuperview" ref="639419835"/>
+ <reference key="NSWindow"/>
+ <reference key="NSNextKeyView" ref="237130205"/>
+ <bool key="NSEnabled">YES</bool>
+ <object class="NSTextFieldCell" key="NSCell" id="186420495">
+ <int key="NSCellFlags">68288064</int>
+ <int key="NSCellFlags2">272630784</int>
+ <string key="NSContents">Changes take effect after restarting the server.</string>
+ <object class="NSFont" key="NSSupport">
+ <string key="NSName">LucidaGrande</string>
+ <double key="NSSize">10</double>
+ <int key="NSfFlags">16</int>
+ </object>
+ <reference key="NSControlView" ref="1024331534"/>
+ <reference key="NSBackgroundColor" ref="469404510"/>
+ <reference key="NSTextColor" ref="1045030480"/>
+ </object>
+ </object>
+ </object>
+ <string key="NSFrame">{{1, 1}, {444, 129}}</string>
+ <reference key="NSSuperview" ref="243876952"/>
+ <reference key="NSWindow"/>
+ <reference key="NSNextKeyView" ref="1037686974"/>
+ </object>
+ </object>
+ <string key="NSFrame">{{17, 41}, {446, 145}}</string>
+ <reference key="NSSuperview" ref="412806513"/>
+ <reference key="NSWindow"/>
+ <reference key="NSNextKeyView" ref="639419835"/>
+ <string key="NSOffsets">{0, 0}</string>
+ <object class="NSTextFieldCell" key="NSTitleCell">
+ <int key="NSCellFlags">67239424</int>
+ <int key="NSCellFlags2">0</int>
+ <string key="NSContents">Server settings</string>
+ <object class="NSFont" key="NSSupport">
+ <string key="NSName">LucidaGrande</string>
+ <double key="NSSize">11</double>
+ <int key="NSfFlags">3100</int>
+ </object>
+ <reference key="NSBackgroundColor" ref="63205009"/>
+ <object class="NSColor" key="NSTextColor">
+ <int key="NSColorSpace">3</int>
+ <bytes key="NSWhite">MCAwLjgwMDAwMDAxMTkAA</bytes>
+ </object>
+ </object>
+ <reference key="NSContentView" ref="639419835"/>
+ <int key="NSBorderType">1</int>
+ <int key="NSBoxType">0</int>
+ <int key="NSTitlePosition">2</int>
+ <bool key="NSTransparent">NO</bool>
+ </object>
+ <object class="NSButton" id="630254630">
+ <reference key="NSNextResponder" ref="412806513"/>
+ <int key="NSvFlags">289</int>
+ <string key="NSFrame">{{382, 18}, {78, 19}}</string>
+ <reference key="NSSuperview" ref="412806513"/>
+ <reference key="NSWindow"/>
+ <bool key="NSEnabled">YES</bool>
+ <object class="NSButtonCell" key="NSCell" id="248084763">
+ <int key="NSCellFlags">-2080244224</int>
+ <int key="NSCellFlags2">134217728</int>
+ <string key="NSContents">Save</string>
+ <object class="NSFont" key="NSSupport" id="362895591">
+ <string key="NSName">LucidaGrande</string>
+ <double key="NSSize">12</double>
+ <int key="NSfFlags">16</int>
+ </object>
+ <reference key="NSControlView" ref="630254630"/>
+ <int key="NSButtonFlags">-2038152961</int>
+ <int key="NSButtonFlags2">164</int>
+ <string key="NSAlternateContents"/>
+ <string key="NSKeyEquivalent"/>
+ <int key="NSPeriodicDelay">400</int>
+ <int key="NSPeriodicInterval">75</int>
+ </object>
+ </object>
+ <object class="NSButton" id="237130205">
+ <reference key="NSNextResponder" ref="412806513"/>
+ <int key="NSvFlags">289</int>
+ <string key="NSFrame">{{296, 18}, {78, 19}}</string>
+ <reference key="NSSuperview" ref="412806513"/>
+ <reference key="NSWindow"/>
+ <reference key="NSNextKeyView" ref="630254630"/>
+ <bool key="NSEnabled">YES</bool>
+ <object class="NSButtonCell" key="NSCell" id="507920000">
+ <int key="NSCellFlags">-2080244224</int>
+ <int key="NSCellFlags2">134217728</int>
+ <string key="NSContents">Cancel</string>
+ <reference key="NSSupport" ref="362895591"/>
+ <reference key="NSControlView" ref="237130205"/>
+ <int key="NSButtonFlags">-2038152961</int>
+ <int key="NSButtonFlags2">164</int>
+ <string key="NSAlternateContents"/>
+ <string key="NSKeyEquivalent"/>
+ <int key="NSPeriodicDelay">400</int>
+ <int key="NSPeriodicInterval">75</int>
+ </object>
+ </object>
+ </object>
+ <string key="NSFrame">{{7, 11}, {480, 206}}</string>
+ <reference key="NSSuperview"/>
+ <reference key="NSWindow"/>
+ <reference key="NSNextKeyView" ref="243876952"/>
+ </object>
+ <string key="NSScreenRect">{{0, 0}, {1440, 878}}</string>
+ <string key="NSMinSize">{300, 228}</string>
+ <string key="NSMaxSize">{600, 228}</string>
+ </object>
+ <object class="NSObjectController" id="442057549">
+ <string key="NSObjectClassName">ShairPortModel</string>
+ <bool key="NSEditable">YES</bool>
+ <object class="_NSManagedProxy" key="_NSManagedProxy"/>
+ </object>
+ </object>
+ <object class="IBObjectContainer" key="IBDocument.Objects">
+ <object class="NSMutableArray" key="connectionRecords">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <object class="IBConnectionRecord">
+ <object class="IBActionConnection" key="connection">
+ <string key="label">performClose:</string>
+ <reference key="source" ref="32674328"/>
+ <reference key="destination" ref="237130205"/>
+ </object>
+ <int key="connectionID">20</int>
+ </object>
+ <object class="IBConnectionRecord">
+ <object class="IBOutletConnection" key="connection">
+ <string key="label">initialFirstResponder</string>
+ <reference key="source" ref="32674328"/>
+ <reference key="destination" ref="295223274"/>
+ </object>
+ <int key="connectionID">21</int>
+ </object>
+ <object class="IBConnectionRecord">
+ <object class="IBOutletConnection" key="connection">
+ <string key="label">window</string>
+ <reference key="source" ref="1001"/>
+ <reference key="destination" ref="32674328"/>
+ </object>
+ <int key="connectionID">22</int>
+ </object>
+ <object class="IBConnectionRecord">
+ <object class="IBActionConnection" key="connection">
+ <string key="label">savePreferences:</string>
+ <reference key="source" ref="1001"/>
+ <reference key="destination" ref="630254630"/>
+ </object>
+ <int key="connectionID">23</int>
+ </object>
+ <object class="IBConnectionRecord">
+ <object class="IBOutletConnection" key="connection">
+ <string key="label">serverNameField</string>
+ <reference key="source" ref="1001"/>
+ <reference key="destination" ref="295223274"/>
+ </object>
+ <int key="connectionID">24</int>
+ </object>
+ <object class="IBConnectionRecord">
+ <object class="IBOutletConnection" key="connection">
+ <string key="label">serverPasswordField</string>
+ <reference key="source" ref="1001"/>
+ <reference key="destination" ref="285321870"/>
+ </object>
+ <int key="connectionID">25</int>
+ </object>
+ <object class="IBConnectionRecord">
+ <object class="IBOutletConnection" key="connection">
+ <string key="label">serverUsePasswordButton</string>
+ <reference key="source" ref="1001"/>
+ <reference key="destination" ref="427581775"/>
+ </object>
+ <int key="connectionID">26</int>
+ </object>
+ <object class="IBConnectionRecord">
+ <object class="IBBindingConnection" key="connection">
+ <string key="label">contentObject: self.model</string>
+ <reference key="source" ref="442057549"/>
+ <reference key="destination" ref="1001"/>
+ <object class="NSNibBindingConnector" key="connector">
+ <reference key="NSSource" ref="442057549"/>
+ <reference key="NSDestination" ref="1001"/>
+ <string key="NSLabel">contentObject: self.model</string>
+ <string key="NSBinding">contentObject</string>
+ <string key="NSKeyPath">self.model</string>
+ <int key="NSNibBindingConnectorVersion">2</int>
+ </object>
+ </object>
+ <int key="connectionID">31</int>
+ </object>
+ <object class="IBConnectionRecord">
+ <object class="IBBindingConnection" key="connection">
+ <string key="label">value: selection.serverName</string>
+ <reference key="source" ref="295223274"/>
+ <reference key="destination" ref="442057549"/>
+ <object class="NSNibBindingConnector" key="connector">
+ <reference key="NSSource" ref="295223274"/>
+ <reference key="NSDestination" ref="442057549"/>
+ <string key="NSLabel">value: selection.serverName</string>
+ <string key="NSBinding">value</string>
+ <string key="NSKeyPath">selection.serverName</string>
+ <int key="NSNibBindingConnectorVersion">2</int>
+ </object>
+ </object>
+ <int key="connectionID">33</int>
+ </object>
+ <object class="IBConnectionRecord">
+ <object class="IBBindingConnection" key="connection">
+ <string key="label">value: selection.serverPassword</string>
+ <reference key="source" ref="285321870"/>
+ <reference key="destination" ref="442057549"/>
+ <object class="NSNibBindingConnector" key="connector">
+ <reference key="NSSource" ref="285321870"/>
+ <reference key="NSDestination" ref="442057549"/>
+ <string key="NSLabel">value: selection.serverPassword</string>
+ <string key="NSBinding">value</string>
+ <string key="NSKeyPath">selection.serverPassword</string>
+ <int key="NSNibBindingConnectorVersion">2</int>
+ </object>
+ </object>
+ <int key="connectionID">34</int>
+ </object>
+ <object class="IBConnectionRecord">
+ <object class="IBBindingConnection" key="connection">
+ <string key="label">value: selection.usePassword</string>
+ <reference key="source" ref="427581775"/>
+ <reference key="destination" ref="442057549"/>
+ <object class="NSNibBindingConnector" key="connector">
+ <reference key="NSSource" ref="427581775"/>
+ <reference key="NSDestination" ref="442057549"/>
+ <string key="NSLabel">value: selection.usePassword</string>
+ <string key="NSBinding">value</string>
+ <string key="NSKeyPath">selection.usePassword</string>
+ <int key="NSNibBindingConnectorVersion">2</int>
+ </object>
+ </object>
+ <int key="connectionID">35</int>
+ </object>
+ </object>
+ <object class="IBMutableOrderedSet" key="objectRecords">
+ <object class="NSArray" key="orderedObjects">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <object class="IBObjectRecord">
+ <int key="objectID">0</int>
+ <reference key="object" ref="0"/>
+ <reference key="children" ref="1000"/>
+ <nil key="parent"/>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">-2</int>
+ <reference key="object" ref="1001"/>
+ <reference key="parent" ref="0"/>
+ <string key="objectName">File's Owner</string>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">-1</int>
+ <reference key="object" ref="1003"/>
+ <reference key="parent" ref="0"/>
+ <string key="objectName">First Responder</string>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">-3</int>
+ <reference key="object" ref="1004"/>
+ <reference key="parent" ref="0"/>
+ <string key="objectName">Application</string>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">3</int>
+ <reference key="object" ref="32674328"/>
+ <object class="NSMutableArray" key="children">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <reference ref="412806513"/>
+ </object>
+ <reference key="parent" ref="0"/>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">4</int>
+ <reference key="object" ref="412806513"/>
+ <object class="NSMutableArray" key="children">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <reference ref="243876952"/>
+ <reference ref="630254630"/>
+ <reference ref="237130205"/>
+ </object>
+ <reference key="parent" ref="32674328"/>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">5</int>
+ <reference key="object" ref="630254630"/>
+ <object class="NSMutableArray" key="children">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <reference ref="248084763"/>
+ </object>
+ <reference key="parent" ref="412806513"/>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">6</int>
+ <reference key="object" ref="237130205"/>
+ <object class="NSMutableArray" key="children">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <reference ref="507920000"/>
+ </object>
+ <reference key="parent" ref="412806513"/>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">7</int>
+ <reference key="object" ref="243876952"/>
+ <object class="NSMutableArray" key="children">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <reference ref="285321870"/>
+ <reference ref="427581775"/>
+ <reference ref="295223274"/>
+ <reference ref="274653452"/>
+ <reference ref="1037686974"/>
+ <reference ref="1024331534"/>
+ </object>
+ <reference key="parent" ref="412806513"/>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">8</int>
+ <reference key="object" ref="285321870"/>
+ <object class="NSMutableArray" key="children">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <reference ref="136924926"/>
+ </object>
+ <reference key="parent" ref="243876952"/>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">9</int>
+ <reference key="object" ref="427581775"/>
+ <object class="NSMutableArray" key="children">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <reference ref="607191293"/>
+ </object>
+ <reference key="parent" ref="243876952"/>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">10</int>
+ <reference key="object" ref="295223274"/>
+ <object class="NSMutableArray" key="children">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <reference ref="369195893"/>
+ </object>
+ <reference key="parent" ref="243876952"/>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">11</int>
+ <reference key="object" ref="274653452"/>
+ <object class="NSMutableArray" key="children">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <reference ref="202874833"/>
+ </object>
+ <reference key="parent" ref="243876952"/>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">12</int>
+ <reference key="object" ref="1037686974"/>
+ <object class="NSMutableArray" key="children">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <reference ref="438931567"/>
+ </object>
+ <reference key="parent" ref="243876952"/>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">13</int>
+ <reference key="object" ref="438931567"/>
+ <reference key="parent" ref="1037686974"/>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">14</int>
+ <reference key="object" ref="202874833"/>
+ <reference key="parent" ref="274653452"/>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">15</int>
+ <reference key="object" ref="369195893"/>
+ <reference key="parent" ref="295223274"/>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">16</int>
+ <reference key="object" ref="607191293"/>
+ <reference key="parent" ref="427581775"/>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">17</int>
+ <reference key="object" ref="136924926"/>
+ <reference key="parent" ref="285321870"/>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">18</int>
+ <reference key="object" ref="507920000"/>
+ <reference key="parent" ref="237130205"/>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">19</int>
+ <reference key="object" ref="248084763"/>
+ <reference key="parent" ref="630254630"/>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">28</int>
+ <reference key="object" ref="442057549"/>
+ <reference key="parent" ref="0"/>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">36</int>
+ <reference key="object" ref="1024331534"/>
+ <object class="NSMutableArray" key="children">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <reference ref="186420495"/>
+ </object>
+ <reference key="parent" ref="243876952"/>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">37</int>
+ <reference key="object" ref="186420495"/>
+ <reference key="parent" ref="1024331534"/>
+ </object>
+ </object>
+ </object>
+ <object class="NSMutableDictionary" key="flattenedProperties">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <object class="NSArray" key="dict.sortedKeys">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <string>-1.IBPluginDependency</string>
+ <string>-2.IBPluginDependency</string>
+ <string>-3.IBPluginDependency</string>
+ <string>10.IBPluginDependency</string>
+ <string>11.IBPluginDependency</string>
+ <string>12.IBPluginDependency</string>
+ <string>13.IBPluginDependency</string>
+ <string>14.IBPluginDependency</string>
+ <string>15.IBPluginDependency</string>
+ <string>16.IBPluginDependency</string>
+ <string>17.IBPluginDependency</string>
+ <string>18.IBPluginDependency</string>
+ <string>19.IBPluginDependency</string>
+ <string>28.IBPluginDependency</string>
+ <string>3.IBPluginDependency</string>
+ <string>3.NSWindowTemplate.visibleAtLaunch</string>
+ <string>36.IBPluginDependency</string>
+ <string>37.IBPluginDependency</string>
+ <string>4.IBPluginDependency</string>
+ <string>5.IBPluginDependency</string>
+ <string>6.IBPluginDependency</string>
+ <string>7.IBPluginDependency</string>
+ <string>8.IBPluginDependency</string>
+ <string>9.IBPluginDependency</string>
+ </object>
+ <object class="NSMutableArray" key="dict.values">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <string>com.apple.InterfaceBuilder.CocoaPlugin</string>
+ <string>com.apple.InterfaceBuilder.CocoaPlugin</string>
+ <string>com.apple.InterfaceBuilder.CocoaPlugin</string>
+ <string>com.apple.InterfaceBuilder.CocoaPlugin</string>
+ <string>com.apple.InterfaceBuilder.CocoaPlugin</string>
+ <string>com.apple.InterfaceBuilder.CocoaPlugin</string>
+ <string>com.apple.InterfaceBuilder.CocoaPlugin</string>
+ <string>com.apple.InterfaceBuilder.CocoaPlugin</string>
+ <string>com.apple.InterfaceBuilder.CocoaPlugin</string>
+ <string>com.apple.InterfaceBuilder.CocoaPlugin</string>
+ <string>com.apple.InterfaceBuilder.CocoaPlugin</string>
+ <string>com.apple.InterfaceBuilder.CocoaPlugin</string>
+ <string>com.apple.InterfaceBuilder.CocoaPlugin</string>
+ <string>com.apple.InterfaceBuilder.CocoaPlugin</string>
+ <string>com.apple.InterfaceBuilder.CocoaPlugin</string>
+ <boolean value="NO"/>
+ <string>com.apple.InterfaceBuilder.CocoaPlugin</string>
+ <string>com.apple.InterfaceBuilder.CocoaPlugin</string>
+ <string>com.apple.InterfaceBuilder.CocoaPlugin</string>
+ <string>com.apple.InterfaceBuilder.CocoaPlugin</string>
+ <string>com.apple.InterfaceBuilder.CocoaPlugin</string>
+ <string>com.apple.InterfaceBuilder.CocoaPlugin</string>
+ <string>com.apple.InterfaceBuilder.CocoaPlugin</string>
+ <string>com.apple.InterfaceBuilder.CocoaPlugin</string>
+ </object>
+ </object>
+ <object class="NSMutableDictionary" key="unlocalizedProperties">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <reference key="dict.sortedKeys" ref="0"/>
+ <reference key="dict.values" ref="0"/>
+ </object>
+ <nil key="activeLocalization"/>
+ <object class="NSMutableDictionary" key="localizations">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <reference key="dict.sortedKeys" ref="0"/>
+ <reference key="dict.values" ref="0"/>
+ </object>
+ <nil key="sourceID"/>
+ <int key="maxID">37</int>
+ </object>
+ <object class="IBClassDescriber" key="IBDocument.Classes">
+ <object class="NSMutableArray" key="referencedPartialClassDescriptions">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <object class="IBPartialClassDescription">
+ <string key="className">ShairPreferencesController</string>
+ <string key="superclassName">NSWindowController</string>
+ <object class="NSMutableDictionary" key="actions">
+ <string key="NS.key.0">savePreferences:</string>
+ <string key="NS.object.0">id</string>
+ </object>
+ <object class="NSMutableDictionary" key="actionInfosByName">
+ <string key="NS.key.0">savePreferences:</string>
+ <object class="IBActionInfo" key="NS.object.0">
+ <string key="name">savePreferences:</string>
+ <string key="candidateClassName">id</string>
+ </object>
+ </object>
+ <object class="NSMutableDictionary" key="outlets">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <object class="NSArray" key="dict.sortedKeys">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <string>model</string>
+ <string>serverNameField</string>
+ <string>serverPasswordField</string>
+ <string>serverUsePasswordButton</string>
+ </object>
+ <object class="NSMutableArray" key="dict.values">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <string>id</string>
+ <string>NSTextField</string>
+ <string>NSTextField</string>
+ <string>NSButton</string>
+ </object>
+ </object>
+ <object class="NSMutableDictionary" key="toOneOutletInfosByName">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <object class="NSArray" key="dict.sortedKeys">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <string>model</string>
+ <string>serverNameField</string>
+ <string>serverPasswordField</string>
+ <string>serverUsePasswordButton</string>
+ </object>
+ <object class="NSMutableArray" key="dict.values">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <object class="IBToOneOutletInfo">
+ <string key="name">model</string>
+ <string key="candidateClassName">id</string>
+ </object>
+ <object class="IBToOneOutletInfo">
+ <string key="name">serverNameField</string>
+ <string key="candidateClassName">NSTextField</string>
+ </object>
+ <object class="IBToOneOutletInfo">
+ <string key="name">serverPasswordField</string>
+ <string key="candidateClassName">NSTextField</string>
+ </object>
+ <object class="IBToOneOutletInfo">
+ <string key="name">serverUsePasswordButton</string>
+ <string key="candidateClassName">NSButton</string>
+ </object>
+ </object>
+ </object>
+ <object class="IBClassDescriptionSource" key="sourceIdentifier">
+ <string key="majorKey">IBProjectSource</string>
+ <string key="minorKey">./Classes/ShairPreferencesController.h</string>
+ </object>
+ </object>
+ </object>
+ </object>
+ <int key="IBDocument.localizationMode">0</int>
+ <string key="IBDocument.TargetRuntimeIdentifier">IBCocoaFramework</string>
+ <object class="NSMutableDictionary" key="IBDocument.PluginDeclaredDevelopmentDependencies">