Correct details related to combo box

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@19872 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Quentin Mathe 2004-08-13 23:28:50 +00:00
parent a4c583b139
commit 1fc2399220
3 changed files with 11 additions and 6 deletions

View file

@ -97,6 +97,11 @@
- (int)indexOfItemWithObjectValue:(id)object;
- (NSArray *)objectValues;
- (BOOL) trackMouse: (NSEvent *)theEvent
inRect: (NSRect)cellFrame
ofView: (NSView *)controlView
untilMouseUp: (BOOL)flag;
#ifndef STRICT_OPENSTEP
/* text completion */
- (NSString *)completedString:(NSString *)substring;

View file

@ -456,8 +456,8 @@ static NSNotificationCenter *nc;
- (void) mouseDown: (NSEvent*)theEvent
{
BOOL buttonClicked;
// buttonClicked is set to the value YNO when the click occurs in the text cell
// and to the value YES when it occurs in the button cell
// buttonClicked is set to the value NO when the click occurs in the text cell
// and to the value YES when it occurs in the button cell.
buttonClicked = [_cell trackMouse: theEvent inRect: [self bounds]
ofView: self untilMouseUp: YES];

View file

@ -1278,10 +1278,10 @@ numberOfRowsInColumn: (int)column
* You rarely needs to call this method explicitly in your code.
* By default, the implementation of this method first checks whether the combo
* box cell uses a data source and whether the data source responds to
* comboBox:completedString: or comboBoxCell:completedString:. When it is the
* case, it uses this method to return <var>str</var>, else this method goes
* through the combo box cell items one by one and returns the first item found
* starting with <var>substring</var>.
* <code>comboBox:completedString:</code> or <code>comboBoxCell:completedString:</code>.
* When it is the case, it uses this method to return <var>str</var>, else this
* method goes through the combo box cell items one by one and returns the first
* item found starting with <var>substring</var>.
* In the case, you want another behavior, you can override this method without
* need to call the superclass method.
*/