Added aditional methods for text completion

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@9541 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
FredKiefer 2001-04-09 21:24:53 +00:00
parent 576a4db6e6
commit 13f8324f10
3 changed files with 41 additions and 0 deletions

View file

@ -47,6 +47,7 @@
//_buttonCell = nil;
_popUpList = [[NSMutableArray alloc] init];
//_usesDataSource = NO;
//_completes = NO;
_visibleItems = 10;
_intercellSpacing = NSZeroSize;
_itemHeight = 14;
@ -296,6 +297,23 @@
return _popUpList;
}
// Text completion
- (NSString *)completedString:(NSString *)substring
{
// FIXME
return substring;
}
- (void)setCompletes:(BOOL)completes
{
_completes = completes;
}
- (BOOL)completes
{
return _completes;
}
- (void)performPopUsingSelector:(SEL)aSelector
inRect:(NSRect)cellFrame
ofView:(NSView *)controlView