Skip to content

Sample code about using the Cocoa NSTextFinderClient

Notifications You must be signed in to change notification settings

Jim-0/useNSTextFinder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sample Code

Introduction

Learning the usage of NSTextFinder, for implementing the elegant find function for your Application.

NSTextFinderClient

There are two very interesting properties as below:

            textFinder.incrementalSearchingShouldDimContentView = true
            textFinder.isIncrementalSearchingEnabled = true

In order to facilitate debugging and clarify the running process, the code adds a lot of console printing. Please forgive me. 😅

Demo

The rest of the code refers Developing a Document-Based App.

UseTextFinder Demo

About

Sample code about using the Cocoa NSTextFinderClient

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages