From 7fc5ff9087db5f5652cd2036e3a12949eccee750 Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Fri, 6 Feb 2009 00:32:10 -0500 Subject: [PATCH] Add the path management bindings and array controller * English.lproj/Preferences.xib: Hook up the interface using bindings and NSUserDefaultsController * Source/AppDelegate.m: (load): Add a default for the PathReplacements user defaults --- English.lproj/Preferences.xib | 330 ++++++++++++++++++++++------------ Source/AppDelegate.m | 7 +- 2 files changed, 217 insertions(+), 120 deletions(-) diff --git a/English.lproj/Preferences.xib b/English.lproj/Preferences.xib index 300f65b..3044de2 100644 --- a/English.lproj/Preferences.xib +++ b/English.lproj/Preferences.xib @@ -77,7 +77,7 @@ YES 0 - + 7E7339A3-79C3-4087-B2F7-2479CFD10818 @@ -166,12 +166,12 @@ - + YES - + @@ -194,6 +194,7 @@ YES Port IDEKey + PathReplacements YES @@ -223,7 +224,7 @@ 6 System controlColor - + 3 MC42NjY2NjY2OQA @@ -257,7 +258,7 @@ 6 System textBackgroundColor - + 3 MQA @@ -332,43 +333,43 @@ NSView - + 268 YES - - + + 268 YES - - + + 2304 YES - - + + 256 {427, 175} - + YES - - + + 256 {427, 17} - - + + - - + + -2147483392 {{-26, 0}, {16, 17}} - + YES - + 2.050000e+02 4.000000e+01 1.000000e+03 @@ -381,37 +382,37 @@ 1.100000e+01 3100 - + 3 MC4zMzMzMzI5OQA - + 6 System headerTextColor - + 337772096 2048 Text Cell - - + + 6 System controlBackgroundColor - + 3 YES YES - + - + 2.160000e+02 4.000000e+01 1.000000e+03 @@ -420,27 +421,27 @@ 0 Replacement - - + + - + 337772096 2048 Text Cell - - + + 3 YES YES - + 3.000000e+00 2.000000e+00 - + 6 System @@ -459,71 +460,71 @@ {{1, 17}, {427, 175}} - - - - + + + + 4 - - + + -2147483392 {{411, 17}, {15, 160}} - - + + _doScroller: 9.142857e-01 - - + + -2147483392 {{1, 177}, {411, 15}} - + 1 - + _doScroller: 1.000000e+00 9.976526e-01 - - + + 2304 YES - + {{1, 0}, {427, 17}} - - - - + + + + 4 - + {{-1, 20}, {429, 193}} - - + + 562 - - - - - + + + + + QSAAAEEgAABBmAAAQZgAAA - - + + 268 {{-1, -1}, {26, 23}} - + YES - + -2080244224 134217728 - + -2033434369 162 @@ -536,18 +537,18 @@ 75 - - + + 268 {{24, -1}, {26, 23}} - + YES - + -2080244224 134217728 - + -2033434369 162 @@ -565,6 +566,21 @@ NSView + + + YES + local + remote + + YES + YES + + YES + YES + YES + YES + YES + @@ -653,7 +669,7 @@ showPaths: - + 51 @@ -661,7 +677,7 @@ pathsPreferencesItem - + 52 @@ -669,10 +685,78 @@ pathsPreferencesView - + 54 + + + contentArray: values.PathReplacements + + + + + + contentArray: values.PathReplacements + contentArray + values.PathReplacements + + NSHandlesContentAsCompoundValue + + + 2 + + + 80 + + + + value: arrangedObjects.local + + + + + + value: arrangedObjects.local + value + arrangedObjects.local + 2 + + + 82 + + + + value: arrangedObjects.remote + + + + + + value: arrangedObjects.remote + value + arrangedObjects.remote + 2 + + + 84 + + + + add: + + + + 85 + + + + remove: + + + + 86 + @@ -734,7 +818,7 @@ - + @@ -839,113 +923,119 @@ 50 - + 53 - + YES - - - + + + PathsPreferences 55 - + YES - - - - + + + + - + 56 - - + + 57 - - + + 58 - + YES - - + + - + 59 - - + + 60 - + YES - + - + 61 - + YES - + - + 62 - - + + 63 - - + + 64 - + YES - + - + 65 - - + + 66 - + YES - + - + 67 - - + + + + + 78 + + + Paths Controller @@ -998,6 +1088,7 @@ 65.IBPluginDependency 66.IBPluginDependency 67.IBPluginDependency + 78.IBPluginDependency YES @@ -1046,6 +1137,7 @@ com.apple.InterfaceBuilder.CocoaPlugin com.apple.InterfaceBuilder.CocoaPlugin com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin @@ -1068,7 +1160,7 @@ - 67 + 86 diff --git a/Source/AppDelegate.m b/Source/AppDelegate.m index adc6596..5849f42 100644 --- a/Source/AppDelegate.m +++ b/Source/AppDelegate.m @@ -39,7 +39,12 @@ { NSAutoreleasePool* pool = [NSAutoreleasePool new]; - NSDictionary *dict = [[NSDictionary alloc] initWithObjectsAndKeys:[NSNumber numberWithInt:9000], @"Port", @"macgdbp", @"IDEKey", nil]; + NSDictionary *dict = [[NSDictionary alloc] initWithObjectsAndKeys: + [NSNumber numberWithInt:9000], @"Port", + @"macgdbp", @"IDEKey", + [NSMutableArray array], @"PathReplacements", + nil + ]; [[NSUserDefaults standardUserDefaults] registerDefaults:dict]; -- 2.43.5