mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-30 01:40:38 +00:00
Change GSTextFinder parent class back to NSObject, start implementing NSTextFinder in terms of GSTextFinder.
This commit is contained in:
parent
8c36246dca
commit
c3701e2daf
3 changed files with 24 additions and 2 deletions
|
@ -147,6 +147,27 @@
|
|||
|
||||
- (void) encodeWithCoder: (NSCoder *)coder
|
||||
{
|
||||
if ([coder allowsKeyedCoding])
|
||||
{
|
||||
[coder encodeBool: _findIndicatorNeedsUpdate
|
||||
forKey: @"NSFindIndicatorNeedsUpdate"];
|
||||
[coder encodeBool: _incrementalSearchingEnabled
|
||||
forKey: @"NSIncrementalSearchingEnabled"];
|
||||
[coder encodeBool: _incrementalSearchingShouldDimContentView
|
||||
forKey: @"NSIncrementalSearchingShouldDimContentView"];
|
||||
[coder encodeObject: _incrementalMatchRanges
|
||||
forKey: @"NSIncrementalMatchRanges"];
|
||||
}
|
||||
else
|
||||
{
|
||||
[coder encodeValueOfObjCType: @encode(BOOL)
|
||||
at: &_findIndicatorNeedsUpdate];
|
||||
[coder encodeValueOfObjCType: @encode(BOOL)
|
||||
at: &_incrementalSearchingEnabled];
|
||||
[coder encodeValueOfObjCType: @encode(BOOL)
|
||||
at: &_incrementalSearchingShouldDimContentView];
|
||||
[coder encodeObject: _incrementalMatchRanges];
|
||||
}
|
||||
}
|
||||
|
||||
@end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue