mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-30 15:00:38 +00:00
Added NSComboBoxCell documentation
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@19480 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
4ecc443c47
commit
bfd3711f70
3 changed files with 264 additions and 23 deletions
|
@ -41,12 +41,12 @@ static NSNotificationCenter *nc;
|
|||
<heading>Class Description</heading>
|
||||
An NSComboBox is what we can call a completion/choices box, derived from
|
||||
NSTextField, it allows you to enter text like in a text field but also to click
|
||||
in the ellipsis button (indicating the fact other user inputs is possible) on
|
||||
the right of it to obtain a list of choices which you can use as the text field
|
||||
in the ellipsis button (indicating the fact other user inputs are possible) on
|
||||
the right of it to obtain a list of choices whose you can use as the text field
|
||||
value by selecting a row in this list. You can also obtain direct completion
|
||||
when it is enabled via <code>setCompletes:</code> to get a suggested text
|
||||
field value updated as you type.
|
||||
Like other NSControls, NSComboBox is a wrapper around a core piece which
|
||||
Like other NSControl classes, NSComboBox is a wrapper around a core piece which
|
||||
implements the combo box behavior, a cell, which is in this case an
|
||||
NSComboBoxCell.
|
||||
</unit>
|
||||
|
@ -407,6 +407,17 @@ static NSNotificationCenter *nc;
|
|||
return [_cell objectValues];
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns YES when the combo box cell automatic completion is active, returns
|
||||
* NO otherwise.
|
||||
* Take a look at the <code>setCompletes:</code> method documentation to know
|
||||
* how the automatic completion works.
|
||||
*/
|
||||
- (BOOL)completes
|
||||
{
|
||||
return [_cell completes];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets whether the combo box cell automatic completion is active or not.
|
||||
* The automatic completion tries to complete what the user types in the text
|
||||
|
@ -422,17 +433,6 @@ static NSNotificationCenter *nc;
|
|||
[_cell setCompletes: completes];
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns YES when the combo box cell automatic completion is active, returns
|
||||
* NO otherwise.
|
||||
* Take a look at the <code>setCompletes:</code> method documentation to know
|
||||
* how the automatic completion works.
|
||||
*/
|
||||
- (BOOL)completes
|
||||
{
|
||||
return [_cell completes];
|
||||
}
|
||||
|
||||
- (void) setDelegate: (id)anObject
|
||||
{
|
||||
[super setDelegate: anObject];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue