Fixed typo in API

This commit is contained in:
Michael Starke
2021-11-08 14:19:02 +01:00
parent 29d349a0a0
commit 096fdc4384
3 changed files with 5 additions and 6 deletions

View File

@@ -1,8 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="14490.70" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES">
<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="19455" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES">
<dependencies>
<deployment identifier="macosx"/>
<plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="14490.70"/>
<plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="19455"/>
</dependencies>
<objects>
<customObject id="-2" userLabel="File's Owner" customClass="NSApplication">
@@ -251,7 +250,7 @@ CA
</menuItem>
<menuItem title="Find…" tag="1" keyEquivalent="f" id="209">
<connections>
<action selector="perfromCustomSearch:" target="-1" id="RSR-PQ-TH1"/>
<action selector="performCustomSearch:" target="-1" id="RSR-PQ-TH1"/>
</connections>
</menuItem>
</items>

View File

@@ -55,7 +55,7 @@ NSString *const kMPDocumentSearchResultsKey = @"kMPDocumentSearchResul
}
#pragma mark Actions
- (IBAction)perfromCustomSearch:(id)sender {
- (IBAction)performCustomSearch:(id)sender {
[self enterSearchWithContext:[MPEntrySearchContext userContext]];
}

View File

@@ -259,7 +259,7 @@ FOUNDATION_EXTERN NSString *const MPDocumentDidChangeSearchResults;
FOUNDATION_EXTERN NSString *const kMPDocumentSearchResultsKey;
@interface MPDocument (Search)
- (IBAction)perfromCustomSearch:(id)sender;
- (IBAction)performCustomSearch:(id)sender;
- (void)enterSearchWithContext:(MPEntrySearchContext *)context;
/* Should be called by the NSSearchTextField to update the search string */