summaryrefslogtreecommitdiff
path: root/Mac/OSX/PythonLauncher/PreferencesWindowController.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/PreferencesWindowController.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/PreferencesWindowController.m')
-rw-r--r--Mac/OSX/PythonLauncher/PreferencesWindowController.m16
1 files changed, 16 insertions, 0 deletions
diff --git a/Mac/OSX/PythonLauncher/PreferencesWindowController.m b/Mac/OSX/PythonLauncher/PreferencesWindowController.m
index 79344f6a4d..e7ddfdd780 100644
--- a/Mac/OSX/PythonLauncher/PreferencesWindowController.m
+++ b/Mac/OSX/PythonLauncher/PreferencesWindowController.m
@@ -90,5 +90,21 @@
[self update_display];
};
+// NSComboBoxDataSource protocol
+- (unsigned int)comboBox:(NSComboBox *)aComboBox indexOfItemWithStringValue:(NSString *)aString
+{
+ return [[settings interpreters] indexOfObjectIdenticalTo: aString];
+}
+
+- (id)comboBox:(NSComboBox *)aComboBox objectValueForItemAtIndex:(int)index
+{
+ return [[settings interpreters] objectAtIndex: index];
+}
+
+- (int)numberOfItemsInComboBox:(NSComboBox *)aComboBox
+{
+ return [[settings interpreters] count];
+}
+
@end