 {
     #if os(OSX)
     var windowController: NFXWindowController?
+    let mainMenu: NSMenu? = NSApp.mainMenu
+    var nfxMenuItem: NSMenuItem = NSMenuItem(title: "netfox", action: "show", keyEquivalent: String(character: NSF9FunctionKey, length: 1))
     #endif
     
     // swiftSharedInstance is not accessible from ObjC

        }
        return self.filters
    }
}

#if os(iOS)

extension NFX {
    
    func showNFXFollowingPlatform()
    {
        var navigationController: UINavigationController?
        

        clearOldData()
        self.started = false
        showMessage("Stopped!")
        #if os(OSX)
        self.removeNetfoxFromMainmenu()
        #endif
    }
    
    private func showMessage(msg: String) {
