mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-31 10:00:47 +00:00
NSSpellChecker: add missing definitions
Add definitions for the NSCorrectionResponse enum for increased compatibility, as well as some spell checking notification constants.
This commit is contained in:
parent
4f4db46c87
commit
9ce55e08ca
2 changed files with 30 additions and 0 deletions
|
@ -128,5 +128,26 @@ enum
|
|||
- (void)updateSpellingPanelWithMisspelledWord:(NSString *)word;
|
||||
|
||||
@end
|
||||
|
||||
typedef NSInteger NSCorrectionResponse;
|
||||
enum
|
||||
{
|
||||
NSCorrectionResponseNone,
|
||||
NSCorrectionResponseAccepted,
|
||||
NSCorrectionResponseRejected,
|
||||
NSCorrectionResponseIgnored,
|
||||
NSCorrectionResponseEdited,
|
||||
NSCorrectionResponseReverted
|
||||
};
|
||||
|
||||
#if OS_API_VERSION(MAC_OS_X_VERSION_10_7, GS_API_LATEST)
|
||||
APPKIT_EXTERN NSString *NSSpellCheckerDidChangeAutomaticSpellingCorrectionNotification;
|
||||
APPKIT_EXTERN NSString *NSSpellCheckerDidChangeAutomaticTextReplacementNotification;
|
||||
#endif
|
||||
#if OS_API_VERSION(MAC_OS_X_VERSION_10_9, GS_API_LATEST)
|
||||
APPKIT_EXTERN NSString *NSSpellCheckerDidChangeAutomaticQuoteSubstitutionNotification;
|
||||
APPKIT_EXTERN NSString *NSSpellCheckerDidChangeAutomaticDashSubstitutionNotification;
|
||||
#endif
|
||||
|
||||
#endif // _GNUstep_H_NSSpellChecker
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue