3 Replies
      Latest reply on May 12, 2020 10:38 PM by michelXav
      wlionel Level 1 Level 1 (0 points)

        Hello:

         

        My default NSMenu has items which are not applicable to my app. How can I remove the unwanted items?

         

        func applicationDidFinishLaunching(_ aNotification: Notification) {
                item = NSStatusBar.system.statusItem(withLength: NSStatusItem.variableLength)
                func removeItem(at: Int){
                  
                }

         

        What is the code for line 4?

        The Default menu has the following:

         

        App name, File, Edit, Format, Window, View, Help. I want to remove 4 of these.