Invoked by an NSComboBoxCell object to synchronize the pop-up list’s selected item with the text field’s contents.
Original signature is '- (NSUInteger)comboBoxCell:(NSComboBoxCell *)aComboBoxCell indexOfItemWithStringValue:(NSString *)aString'
Available in Mac OS X v10.0 and later.
Declaration Syntax
C# | Visual Basic | Visual C++ |
NSUInteger ComboBoxCellIndexOfItemWithStringValue( NSComboBoxCell aComboBoxCell, NSString aString )
Function ComboBoxCellIndexOfItemWithStringValue ( _ aComboBoxCell As NSComboBoxCell, _ aString As NSString _ ) As NSUInteger
NSUInteger ComboBoxCellIndexOfItemWithStringValue( NSComboBoxCell^ aComboBoxCell, NSString^ aString )
Parameters
- aComboBoxCell (NSComboBoxCell)
- The combo box cell.
- aString (NSString)
- The string to match. If comboBoxCell:completedString: is implemented, aString is the string returned by that method. Otherwise, aString is the text that the user has typed.
Return Value
The index for the pop-up list item matching aString, or NSNotFound if no item matches.
Version Information
- Available in Monobjc Bridge: 10.6 (For Mac OS X 10.6 and later), 10.5 (For Mac OS X 10.5 and later)