Permalink
Browse files

working on the preference panel to move all magic strings

  • Loading branch information...
1 parent 72b08a1 commit ea12bcad48e08bcc5604fef3baa5f225a029632e Owen Evans committed Feb 22, 2009
@@ -16,6 +16,6 @@ -(IBAction) showPreferenceController:(id)sender
if(!preferenceController){
preferenceController = [[PreferenceController alloc]init];
}
- [preferenceController showWindow:self];
+ [preferenceController showWindow:preferenceController];
}
@end
@@ -208,7 +208,7 @@
<reference key="source" ref="917733515"/>
<reference key="destination" ref="609285721"/>
</object>
- <int key="connectionID">451</int>
+ <int key="connectionID">453</int>
</object>
</object>
<object class="IBMutableOrderedSet" key="objectRecords">
@@ -338,10 +338,9 @@
<reference key="parent" ref="1049"/>
</object>
<object class="IBObjectRecord">
- <int key="objectID">449</int>
+ <int key="objectID">452</int>
<reference key="object" ref="917733515"/>
<reference key="parent" ref="1049"/>
- <string key="objectName">ApplicationController</string>
</object>
</object>
</object>
@@ -379,7 +378,7 @@
<string>29.WindowOrigin</string>
<string>29.editorWindowContentRectSynchronizationRect</string>
<string>419.IBPluginDependency</string>
- <string>449.IBPluginDependency</string>
+ <string>452.IBPluginDependency</string>
<string>56.IBPluginDependency</string>
<string>56.ImportedFromIB2</string>
<string>57.IBEditorWindowLastContentRect</string>
@@ -448,7 +447,7 @@
</object>
</object>
<nil key="sourceID"/>
- <int key="maxID">451</int>
+ <int key="maxID">453</int>
</object>
<object class="IBClassDescriber" key="IBDocument.Classes">
<object class="NSMutableArray" key="referencedPartialClassDescriptions">
@@ -18,4 +18,5 @@
}
- (IBAction) changeViewController:(id)sender;
-(void)displayViewController:(ManagingViewController *)vc;
+
@end
@@ -109,4 +109,5 @@ -(void) setSharedValue:(id)value
{
[sharedValueDictionary setObject:value forKey:key];
}
+
@end
@@ -10,7 +10,14 @@
@interface PreferenceController : NSWindowController {
-
+ IBOutlet NSTextField *requestTokenUrl;
+ IBOutlet NSTextField *requestAuthUrl;
+ IBOutlet NSTextField *accessTokenUrl;
+ IBOutlet NSTextField *consumerKey;
+ IBOutlet NSTextField *consumerSecret;
}
+-(IBAction) savePreferences:(id)sender;
+-(IBAction) cancel:(id)sender;
+
@end
@@ -11,4 +11,22 @@
@implementation PreferenceController
+-(id)init
+{
+ if(![super initWithWindowNibName:@"Preferences"])
+ {
+ return nil;
+ }
+ return self;
+}
+
+-(IBAction) cancel:(id)sender
+{
+ [self close];
+}
+-(IBAction) savePreferences:(id)sender
+{
+
+
+}
@end
Oops, something went wrong.

0 comments on commit ea12bca

Please sign in to comment.