How to remove NSMenuItem gap above custom view

后端 未结 1 1054
旧巷少年郎
旧巷少年郎 2021-01-28 20:32

I was looking for something discussed in following posts.

Gap above NSMenuItem custom view.

Reverse engineering an NSMenu for a Status Bar Item

I tried t

1条回答
  •  情歌与酒
    2021-01-28 21:24

    Just replace the InstallControlEventHandler function call to HIViewInstallEventHandler and code will work fine.

    Thanks

    0 讨论(0)
提交回复
热议问题