mirror of
https://github.com/python/cpython.git
synced 2025-08-01 23:53:15 +00:00
Changed the input field for the interpreter to use (in the preferences
window) to a combobox listing the known interpreters.
This commit is contained in:
parent
9431e48d23
commit
f044e090c4
9 changed files with 52 additions and 10 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue