Is it possible to add a NSStatusItem to a specific position in NSStatusBar?
问题 I use self.statusItem = [[NSStatusBar systemStatusBar] statusItemWithLength:NSVariableStatusItemLength]; to add an statusItem to the systemStatusBar on OSX. The statusItem then appears on the left-most position in the systemStatusBar. I was wondering if there is a way to add such an item to a specific index e.g. on the left side of the system clock? 回答1: Yes and no. Using private API you can specify priority for adding NSStatusItem . I have developed a tiny category for NSStatusBar