summaryrefslogtreecommitdiff
path: root/Mac/OSX/PythonLauncher/FileSettings.m
diff options
context:
space:
mode:
authorJack Jansen <jack.jansen@cwi.nl>2002-12-26 22:10:53 +0000
committerJack Jansen <jack.jansen@cwi.nl>2002-12-26 22:10:53 +0000
commitf044e090c4c8aeed0480fc56fec01e651d811680 (patch)
treeb7e6e67606bd3aba3115bea2955f21ed61402618 /Mac/OSX/PythonLauncher/FileSettings.m
parent9431e48d238a77422436a6b3e56a4237e87d71ea (diff)
downloadcpython-git-f044e090c4c8aeed0480fc56fec01e651d811680.tar.gz
Changed the input field for the interpreter to use (in the preferences
window) to a combobox listing the known interpreters.
Diffstat (limited to 'Mac/OSX/PythonLauncher/FileSettings.m')
-rwxr-xr-xMac/OSX/PythonLauncher/FileSettings.m6
1 files changed, 4 insertions, 2 deletions
diff --git a/Mac/OSX/PythonLauncher/FileSettings.m b/Mac/OSX/PythonLauncher/FileSettings.m
index 89772f66b9..b2961d297a 100755
--- a/Mac/OSX/PythonLauncher/FileSettings.m
+++ b/Mac/OSX/PythonLauncher/FileSettings.m
@@ -104,7 +104,6 @@
int i;
NSString *filename;
NSDictionary *dict;
- NSArray *interpreters;
static NSDictionary *factorySettings;
self = [super init];
@@ -163,6 +162,7 @@
fsdefaults = [FileSettings getFactorySettingsForFileType: filetype];
self = [self initWithFileSettings: fsdefaults];
if (!self) return self;
+ interpreters = [fsdefaults->interpreters retain];
[self applyUserDefaults: filetype];
prefskey = [filetype retain];
return self;
@@ -247,9 +247,11 @@
tabs?" -t":"",
others,
script,
- with_terminal? "&& exit" : " &"];
+ with_terminal? "&& echo Exit status: $? && exit 1" : " &"];
}
+- (NSArray *) interpreters { return interpreters;};
+
// FileSettingsSource protocol
- (NSString *) interpreter { return interpreter;};
- (BOOL) debug { return debug;};