summaryrefslogtreecommitdiffstats
path: root/Mac/PythonLauncher/PreferencesWindowController.m
diff options
context:
space:
mode:
authorRonald Oussoren <ronaldoussoren@mac.com>2013-07-07 07:53:08 (GMT)
committerRonald Oussoren <ronaldoussoren@mac.com>2013-07-07 07:53:08 (GMT)
commit4e327c9d1cd8f7c7abbc5b9fa4384a801ff3fe59 (patch)
tree86c7d6e4381d92af59f8df4ec9faaf74a1f2f11a /Mac/PythonLauncher/PreferencesWindowController.m
parent385521c90e35565ceb1bc54ab31b217321fd2d84 (diff)
downloadcpython-4e327c9d1cd8f7c7abbc5b9fa4384a801ff3fe59.zip
cpython-4e327c9d1cd8f7c7abbc5b9fa4384a801ff3fe59.tar.gz
cpython-4e327c9d1cd8f7c7abbc5b9fa4384a801ff3fe59.tar.bz2
Issue #18377: Code cleanup in Python Launcher
This changeset fixes a number of compiler warnings in the Python Launcher binary for OSX. It also cleans up whitespace usage in those sources.
Diffstat (limited to 'Mac/PythonLauncher/PreferencesWindowController.m')
-rw-r--r--Mac/PythonLauncher/PreferencesWindowController.m11
1 files changed, 4 insertions, 7 deletions
diff --git a/Mac/PythonLauncher/PreferencesWindowController.m b/Mac/PythonLauncher/PreferencesWindowController.m
index 311c375..dc65064 100644
--- a/Mac/PythonLauncher/PreferencesWindowController.m
+++ b/Mac/PythonLauncher/PreferencesWindowController.m
@@ -5,7 +5,7 @@
+ getPreferencesWindow
{
static PreferencesWindowController *_singleton;
-
+
if (!_singleton)
_singleton = [[PreferencesWindowController alloc] init];
[_singleton showWindow: _singleton];
@@ -21,15 +21,13 @@
- (void)load_defaults
{
NSString *title = [filetype titleOfSelectedItem];
-
+
settings = [FileSettings getDefaultsForFileType: title];
}
- (void)update_display
{
-// [[self window] setTitle: script];
-
- [interpreter reloadData];
+ [interpreter reloadData];
[interpreter setStringValue: [settings interpreter]];
[honourhashbang setState: [settings honourhashbang]];
[debug setState: [settings debug]];
@@ -41,7 +39,6 @@
[others setStringValue: [settings others]];
[with_terminal setState: [settings with_terminal]];
// Not scriptargs, it isn't for preferences
-
[commandline setStringValue: [settings commandLineForScript: @"<your script here>"]];
}
@@ -75,7 +72,7 @@
[self update_display];
}
-// FileSettingsSource protocol
+// FileSettingsSource protocol
- (NSString *) interpreter { return [interpreter stringValue];};
- (BOOL) honourhashbang { return [honourhashbang state]; };
- (BOOL) debug { return [debug state];};