mirror of
https://github.com/MacPass/MacPass.git
synced 2025-12-13 21:42:32 +00:00
clarifired API with generics
This commit is contained in:
@@ -41,6 +41,6 @@ typedef NS_OPTIONS(NSUInteger, MPContextMenuItemsFlags) {
|
|||||||
Creates an array of menuitems to be used as a menu
|
Creates an array of menuitems to be used as a menu
|
||||||
Automatically sets up actions, so you need to take care of the responder chain
|
Automatically sets up actions, so you need to take care of the responder chain
|
||||||
*/
|
*/
|
||||||
+ (NSArray *)contextMenuItemsWithItems:(MPContextMenuItemsFlags)flags;
|
+ (NSArray <NSMenuItem *> *)contextMenuItemsWithItems:(MPContextMenuItemsFlags)flags;
|
||||||
|
|
||||||
@end
|
@end
|
||||||
|
|||||||
@@ -33,7 +33,7 @@ static void MPContextmenuHelperBeginSection(NSMutableArray *items) {
|
|||||||
|
|
||||||
@implementation MPContextMenuHelper
|
@implementation MPContextMenuHelper
|
||||||
|
|
||||||
+ (NSArray *)contextMenuItemsWithItems:(MPContextMenuItemsFlags)flags {
|
+ (NSArray<NSMenuItem *> *)contextMenuItemsWithItems:(MPContextMenuItemsFlags)flags {
|
||||||
|
|
||||||
BOOL const insertCreate = MPIsFlagSetInOptions(MPContextMenuCreate, flags);
|
BOOL const insertCreate = MPIsFlagSetInOptions(MPContextMenuCreate, flags);
|
||||||
BOOL const insertDelete = MPIsFlagSetInOptions(MPContextMenuDelete, flags);
|
BOOL const insertDelete = MPIsFlagSetInOptions(MPContextMenuDelete, flags);
|
||||||
|
|||||||
Reference in New Issue
Block a user