mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 06:51:44 +00:00
Conditionally compile @required/@option in protocols
This commit is contained in:
parent
09098ead39
commit
68762dde65
1 changed files with 4 additions and 1 deletions
|
@ -50,7 +50,9 @@ typedef NSInteger NSTextInputTraitType;
|
|||
|
||||
@protocol NSTextInputTraits
|
||||
|
||||
#if GS_PROTOCOLS_HAVE_OPTIONAL
|
||||
@optional
|
||||
#endif
|
||||
- (NSTextInputTraitType) autocorrectionType;
|
||||
- (void) setAutocorrectionType: (NSTextInputTraitType)type;
|
||||
- (NSTextInputTraitType) spellCheckingType;
|
||||
|
@ -76,8 +78,9 @@ typedef NSInteger NSTextInputTraitType;
|
|||
|
||||
|
||||
@protocol NSTextCheckingClient <NSTextInputClient, NSTextInputTraits>
|
||||
|
||||
#if GS_PROTOCOLS_HAVE_OPTIONAL
|
||||
@required
|
||||
#endif
|
||||
- (void) addAnnotations: (NSDictionary *)annotations
|
||||
range: (NSRange)range;
|
||||
|
||||
|
|
Loading…
Reference in a new issue