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:
Jack Jansen 2002-12-26 22:10:53 +00:00
parent 9431e48d23
commit f044e090c4
9 changed files with 52 additions and 10 deletions

View file

@ -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