* Source/NSSearchField.m,

* Source/NSSearchFieldCell.m: Small cleanups in formatting and	int types.
This commit is contained in:
fredkiefer 2020-12-12 19:18:29 +01:00
parent 4004f549d7
commit a0f0b8b147
3 changed files with 117 additions and 121 deletions

View file

@ -62,22 +62,22 @@ static Class usedCellClass;
usedCellClass = factoryId ? factoryId : [NSSearchFieldCell class];
}
- (NSArray *) recentSearches
- (NSArray*) recentSearches
{
return [[self cell] recentSearches];
}
- (NSString *) recentsAutosaveName
- (NSString*) recentsAutosaveName
{
return [[self cell] recentsAutosaveName];
}
- (void) setRecentSearches: (NSArray *)searches
- (void) setRecentSearches: (NSArray*)searches
{
[[self cell] setRecentSearches: searches];
}
- (void) setRecentsAutosaveName: (NSString *)name
- (void) setRecentsAutosaveName: (NSString*)name
{
[[self cell] setRecentsAutosaveName: name];
}
@ -88,9 +88,9 @@ static Class usedCellClass;
- (void) mouseDown: (NSEvent*)theEvent
{
[[self cell] trackMouse: theEvent
inRect: [self bounds]
ofView: self
untilMouseUp: YES];
inRect: [self bounds]
ofView: self
untilMouseUp: YES];
}
- (void) delete: (id)sender
@ -101,7 +101,7 @@ static Class usedCellClass;
}
// 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];
}