// // KMPopMenuViewController.h // SignFlow // // Created by Kdan on 2020/10/23. // #import <Cocoa/Cocoa.h> @protocol KMCustomButtonPopMenuViewControllerDataSources <NSObject> //pop框有多少行 - (NSInteger)numberOfLine; //pop框某行显示的文字 - (nullable NSString *)stringForLineAtIndex:(NSInteger)index; //某行是否需要下划线 - (BOOL)needInsertSeperateLineAtIndex:(NSInteger)index; //某行是否需要选取 - (BOOL)needHightLightLineAtIndex:(NSInteger)index; - (nullable NSImage *)imageForLineAtIndex:(NSInteger)index; - (BOOL)itemEnableAtIndex:(NSInteger)index; @end @protocol KMCustomButtonPopMenuViewControllerDelegate <NSObject> - (void)customViewButtonPopDidSelectIndex:(NSInteger)index; @end NS_ASSUME_NONNULL_BEGIN @interface KMCustomButtonPopMenuViewController : NSViewController @property (nonatomic, assign)id<KMCustomButtonPopMenuViewControllerDataSources>dataSources; @property (nonatomic, assign)id<KMCustomButtonPopMenuViewControllerDelegate>delegate; @end NS_ASSUME_NONNULL_END