xcode - NSMenu directly open popover on icon click -


when click logo of app above statusbar, 2 options: open , close.

let menu = nsmenu(); menu.additemwithtitle("open", action: "menu_open", keyequivalent: "m") menu.additemwithtitle("close", action: "menu_close", keyequivalent: "c") 

what want is: when user clicks on icon, want directly open nspopover


Comments

Popular posts from this blog

ios - RestKit 0.20 — CoreData: error: Failed to call designated initializer on NSManagedObject class (again) -

laravel - PDOException in Connector.php line 55: SQLSTATE[HY000] [1045] Access denied for user 'root'@'localhost' (using password: YES) -

java - Digest auth with Spring Security using javaconfig -