Some coding standard changes for NSSearchField

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@31788 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Fred Kiefer 2010-12-27 13:44:18 +00:00
parent caeca26669
commit dc285c6df1
3 changed files with 46 additions and 35 deletions

View file

@ -27,10 +27,11 @@
Boston, MA 02110-1301, USA.
*/
#include <Foundation/NSString.h>
#include <Foundation/NSArray.h>
#include <AppKit/NSSearchField.h>
#include <AppKit/NSSearchFieldCell.h>
#import <Foundation/NSString.h>
#import <Foundation/NSArray.h>
#import "AppKit/NSSearchField.h"
#import "AppKit/NSSearchFieldCell.h"
/*
* Class variables
@ -92,16 +93,17 @@ static Class usedCellClass;
untilMouseUp: YES];
}
- (void)delete:(id)sender
- (void) delete: (id)sender
{
[self setStringValue:@""]; // this may need to do more (like send action), but start here...
[[self cell] performClick:self];
// this may need to do more (like send action), but start here...
[self setStringValue: @""];
[[self cell] performClick: self];
}
// Cocoa only defines these methods on the cell, but nib loading targets the field itself
- (void) setSearchMenuTemplate:(NSMenu *)newTemplate
- (void) setSearchMenuTemplate: (NSMenu *)newTemplate
{
[[self cell] setSearchMenuTemplate:newTemplate];
[[self cell] setSearchMenuTemplate: newTemplate];
}
- (void) setSendsWholeSearchString: (BOOL)flag