mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 07:00:46 +00:00
Changes suggested by @fredkeifer
Clean up declaration of protocols, but use informal protocols after the 10.6 API.
This commit is contained in:
parent
04dfeb9501
commit
7d903e0246
1 changed files with 8 additions and 3 deletions
|
@ -94,7 +94,11 @@
|
|||
#endif
|
||||
@end
|
||||
|
||||
#if OS_API_VERSION(MAC_OS_X_VERSION_10_6, GS_API_LATEST)
|
||||
@protocol NSComboBoxDataSource <NSObject>
|
||||
#else
|
||||
@interface NSObject (NSComboBoxDataSource)
|
||||
#endif
|
||||
- (NSInteger) numberOfItemsInComboBox: (NSComboBox *)aComboBox;
|
||||
- (id) comboBox: (NSComboBox *)aComboBox objectValueForItemAtIndex:(NSInteger)index;
|
||||
- (NSUInteger) comboBox: (NSComboBox *)aComboBox
|
||||
|
@ -106,10 +110,11 @@
|
|||
#endif
|
||||
@end
|
||||
|
||||
@protocol NSComboBoxDataSource <NSObject>
|
||||
@end
|
||||
|
||||
#if OS_API_VERSION(MAC_OS_X_VERSION_10_6, GS_API_LATEST)
|
||||
@protocol NSComboBoxDelegate <NSTextFieldDelegate>
|
||||
#else
|
||||
@interface NSObject (NSComboBoxNotifications)
|
||||
#endif
|
||||
- (void) comboBoxWillPopUp: (NSNotification *)notification;
|
||||
- (void) comboBoxWillDismiss: (NSNotification *)notification;
|
||||
- (void) comboBoxSelectionDidChange: (NSNotification *)notification;
|
||||
|
|
Loading…
Reference in a new issue