mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 07:00:46 +00:00
Initialize shared GSTextFinder
This commit is contained in:
parent
40d84d7284
commit
430862e7e9
1 changed files with 14 additions and 0 deletions
|
@ -32,6 +32,17 @@
|
|||
|
||||
@implementation NSTextFinder
|
||||
|
||||
- (instancetype) init
|
||||
{
|
||||
self = [super init];
|
||||
if (self != nil)
|
||||
{
|
||||
// initialize finder...
|
||||
_finder = [GSTextFinder sharedTextFinder];
|
||||
}
|
||||
return self;
|
||||
}
|
||||
|
||||
// Operation methods
|
||||
- (void) _showFindInterface
|
||||
{
|
||||
|
@ -233,6 +244,9 @@
|
|||
{
|
||||
ASSIGN(_incrementalMatchRanges, [coder decodeObjectForKey: @"NSIncrementalMatchRanges"]);
|
||||
}
|
||||
|
||||
// initialize finder...
|
||||
_finder = [GSTextFinder sharedTextFinder];
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue