Add '@optional' to the declaration for the NSComboBoxDataSource and NSComboBoxDelegate protocols.

This commit is contained in:
Gregory John Casamento 2021-09-29 07:03:47 -04:00
parent 80dbe45d3d
commit 79fdee761e
2 changed files with 7 additions and 0 deletions

View file

@ -1,3 +1,8 @@
2021-09-29 Gregory John Casamento <greg.casamento@gmail.com>
* Headers/AppKit/NSComboBox.h: Add @optional to protocol
declarations for NSComboBoxDelegate and NSComboBoxDataSource.
2021-06-17 Riccardo Mottola <rm@gnu.org>
* Source/NSHelpPanel.m: (initWithContentRect)

View file

@ -96,6 +96,7 @@
#if OS_API_VERSION(MAC_OS_X_VERSION_10_6, GS_API_LATEST)
@protocol NSComboBoxDataSource <NSObject>
@optional
#else
@interface NSObject (NSComboBoxDataSource)
#endif
@ -112,6 +113,7 @@
#if OS_API_VERSION(MAC_OS_X_VERSION_10_6, GS_API_LATEST)
@protocol NSComboBoxDelegate <NSTextFieldDelegate>
@optional
#else
@interface NSObject (NSComboBoxNotifications)
#endif