frame parameter is not being used in _initWithFrame, might as well leave it out, fixed typo in comment

This commit is contained in:
Aparajita Fishman authored and Ross Boucher committed 2010-07-29 09:56:55 -07:00
1 parent 1002f80617
commit 48a89fd828
2 files changed
+5 -5

No files matched your search

+4 -4
View File
@@ -88,7 +88,7 @@ var RECENT_SEARCH_PREFIX = @" ";
_sendsSearchStringImmediately = NO;
_recentsAutosaveName = nil;
[self _initWithFrame:frame];
[self _init];
#if PLATFORM(DOM)
_cancelButton._DOMElement.style.cursor = "default";
_searchButton._DOMElement.style.cursor = "default";
@@ -98,7 +98,7 @@ var RECENT_SEARCH_PREFIX = @" ";
return self;
}
- (void)_initWithFrame:(CGRect)frame
- (void)_init
{
_recentSearches = [CPArray array];
@@ -479,7 +479,7 @@ var RECENT_SEARCH_PREFIX = @" ";
if (_canResignFirstResponder)
return [super resignFirstResponder];
return _canResignFirstResponder;
return NO;
}
- (void)mouseDown:(CPEvent)anEvent
@@ -801,7 +801,7 @@ var CPRecentsAutosaveNameKey = @"CPRecentsAutosaveNameKey",
{
if (self = [super initWithCoder:coder])
{
[self _initWithFrame:[self frame]];
[self _init];
_recentsAutosaveName = [coder decodeObjectForKey:CPRecentsAutosaveNameKey];
_sendsWholeSearchString = [coder decodeBoolForKey:CPSendsWholeSearchStringKey];
+1 -1
View File
@@ -79,7 +79,7 @@
_maximumRecents = [aCoder decodeIntForKey:@"NSMaximumRecents"];
_sendsWholeSearchString = [aCoder decodeBoolForKey:@"NSSendsWholeSearchString"] ? YES : NO;
// These bytes don't seem to be used for anything else but the send immediatly flag
// These bytes don't seem to be used for anything else but the send immediately flag
_sendsSearchStringImmediately = [aCoder decodeBytesForKey:@"NSSearchFieldFlags"] ? YES: NO;
}