Example of a status bar application for OS X in Swift.
Some notes as of the first release of Swift with XCode 6 Beta:
-
Swift has no access modifier support so all instance variables are public
-
NSSatusBar -statusItemWithLength:
exepectsCGFloat
butNSVariableStatusItemLength
andNSSquareStatusItemLength
are of typeCInt