mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-22 16:10:48 +00:00
Add guards
This commit is contained in:
parent
b9ac34ad0a
commit
46334bf4ca
1 changed files with 4 additions and 0 deletions
|
@ -40,7 +40,9 @@ extern "C" {
|
|||
|
||||
@protocol NSTextInputClient
|
||||
|
||||
#if GS_PROTOCOLS_HAVE_OPTIONAL
|
||||
@required
|
||||
#endif
|
||||
// Marked text
|
||||
- (BOOL) hasMarkedText;
|
||||
- (NSRange) markedRange;
|
||||
|
@ -65,7 +67,9 @@ extern "C" {
|
|||
// Binding keystrokes
|
||||
- (void) doCommandBySelector: (SEL)selector;
|
||||
|
||||
#if GS_PROTOCOLS_HAVE_OPTIONAL
|
||||
@optional
|
||||
#endif
|
||||
// Optional methods
|
||||
- (NSAttributedString *) attributedString;
|
||||
- (CGFloat) fractionOfDistanceThroughGlyphForPoint: (NSPoint)point;
|
||||
|
|
Loading…
Reference in a new issue