OS X Status Bar Application with a title in two lines
问题 I'm an old iOS developer and now I want to make a simple OS X status bar application. I need to put a title at the NSStatusItem but it should be in two lines, like iStatPro network feature. How should I add it? 回答1: Here is a very simple example. This example shows two lines with two simple blinking lights. It uses a NSView (Custom view) with two NSTextFields and two NSImageWells inside of it. The red and green light images are added to the project and set to the Image wells in IB. .m // //