mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-31 20:40:47 +00:00
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:
parent
fb46ffd94f
commit
695f87e485
3 changed files with 11 additions and 6 deletions
|
@ -97,6 +97,11 @@
|
||||||
- (int)indexOfItemWithObjectValue:(id)object;
|
- (int)indexOfItemWithObjectValue:(id)object;
|
||||||
- (NSArray *)objectValues;
|
- (NSArray *)objectValues;
|
||||||
|
|
||||||
|
- (BOOL) trackMouse: (NSEvent *)theEvent
|
||||||
|
inRect: (NSRect)cellFrame
|
||||||
|
ofView: (NSView *)controlView
|
||||||
|
untilMouseUp: (BOOL)flag;
|
||||||
|
|
||||||
#ifndef STRICT_OPENSTEP
|
#ifndef STRICT_OPENSTEP
|
||||||
/* text completion */
|
/* text completion */
|
||||||
- (NSString *)completedString:(NSString *)substring;
|
- (NSString *)completedString:(NSString *)substring;
|
||||||
|
|
|
@ -456,8 +456,8 @@ static NSNotificationCenter *nc;
|
||||||
- (void) mouseDown: (NSEvent*)theEvent
|
- (void) mouseDown: (NSEvent*)theEvent
|
||||||
{
|
{
|
||||||
BOOL buttonClicked;
|
BOOL buttonClicked;
|
||||||
// buttonClicked is set to the value YNO when the click occurs in the text 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
|
// and to the value YES when it occurs in the button cell.
|
||||||
|
|
||||||
buttonClicked = [_cell trackMouse: theEvent inRect: [self bounds]
|
buttonClicked = [_cell trackMouse: theEvent inRect: [self bounds]
|
||||||
ofView: self untilMouseUp: YES];
|
ofView: self untilMouseUp: YES];
|
||||||
|
|
|
@ -1278,10 +1278,10 @@ numberOfRowsInColumn: (int)column
|
||||||
* You rarely needs to call this method explicitly in your code.
|
* You rarely needs to call this method explicitly in your code.
|
||||||
* By default, the implementation of this method first checks whether the combo
|
* 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
|
* box cell uses a data source and whether the data source responds to
|
||||||
* comboBox:completedString: or comboBoxCell:completedString:. When it is the
|
* <code>comboBox:completedString:</code> or <code>comboBoxCell:completedString:</code>.
|
||||||
* case, it uses this method to return <var>str</var>, else this method goes
|
* When it is the case, it uses this method to return <var>str</var>, else this
|
||||||
* through the combo box cell items one by one and returns the first item found
|
* method goes through the combo box cell items one by one and returns the first
|
||||||
* starting with <var>substring</var>.
|
* item found starting with <var>substring</var>.
|
||||||
* In the case, you want another behavior, you can override this method without
|
* In the case, you want another behavior, you can override this method without
|
||||||
* need to call the superclass method.
|
* need to call the superclass method.
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue