mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-30 15:00:38 +00:00
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:
parent
030f54c33b
commit
4b51be5d18
3 changed files with 46 additions and 35 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue