SetTitleEdgeInsets for macOS app

I am building and application for macOS where I would like to have distance between NSButton border and content. After looking at how I could do this, I saw a function called setTitleEdgeInsets , but it looks like it is only available for UIButton. Is there an alternative to NSButton? If not, how can I achieve this?

Thanks and greetings

+3
objective-c macos nsbutton


source to share


No one has answered this question yet

Check out similar questions:

1676
How do I install pip on macOS or OS X?
1264
How to check an active internet connection on iOS or macOS?
540
Where is JAVA_HOME on macOS from Mojave (10.14) to Leo (10.7)?
2
NSTextView overlaps NSButton and makes it invisible
1
Swift macOS app Determines which window appears on startup
0
Modification of TCC.db in MacOS Mojave
0
NSButton setImage not working
0
ARC enabled for Qt project on macOS
0
Having a context menu for a dynamically created NSButton
0
NSButton with title in different columns



All Articles
Loading...
X
Show
Funny
Dev
Pics