NSStatusItem Button Title to the Right of the Image

前端 未结 3 1964
挽巷
挽巷 2021-01-20 16:01

I want an NSStatusItem’s button’s title to appear to the right of its image. Here’s an example, this is the OS X VPN menubar app:

3条回答
  •  囚心锁ツ
    2021-01-20 16:38

    based on http://tinkker.io/swift/2015/11/10/nsstatusitem.html, in Swift it looks like button.imagePosition = NSCellImagePosition.ImageLeft does it

提交回复
热议问题