mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-11-15 19:23:50 +00:00
frame parameter is not being used in _initWithFrame, might as well leave it out, fixed typo in comment
This commit is contained in:
1 parent
1002f80617
commit
48a89fd828
2 files changed
+5
-5
No files matched your search
@@ -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];
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user