//
//  NSMenuItem+Action.m
//  WeChatExtension
//
//  Created by WeChatExtension on 2018/4/25.
//  Copyright © 2018年 WeChatExtension. All rights reserved.
//

#import "NSMenuItem+Action.h"

@implementation NSMenuItem (Action)

+ (NSMenuItem *)menuItemWithTitle:(NSString *)title action:(SEL)selector target:(id)target keyEquivalent:(NSString *)key state:(NSControlStateValue)state {
    NSMenuItem *item = [[self alloc] initWithTitle:title action:selector keyEquivalent:key];
    item.target = target;
    item.state = state;
    
    return item;
}

@end
