Re: Substitute for kill(2)? (James Walker)

2023-07-25 Thread Gabriel Zachmann via Cocoa-dev
>> > An XPC service isn't an app, and wouldn't you need an app to run an > NSStatusItem, which I assume is what's meant by a "menu bar item"? Oh, sorry, PS: yes, I do create let statusBar = NSStatusBar.system statusBarItem_ = statusBar.statusItem( withLength: NSStatusItem.variableLength

Re: Substitute for kill(2)? (James Walker)

2023-07-25 Thread Gabriel Zachmann via Cocoa-dev
>> > An XPC service isn't an app, and wouldn't you need an app to run an > NSStatusItem, which I assume is what's meant by a "menu bar item"? > I am just a beginner in "menu bar items" , but what I have is an @NSApplicationMain class AppDelegate: NSObject, NSApplicationDelegate which Xcode