cocoa - NSTouchBar: How to replace "Esc" with "Done" button -


how addressbook app presenting done instead of esc screenshot?

addressbook touch bar

the documentation states system provided button depends on context. how define context?

found it. need use nspopovertouchbaritem. set not show close button, , add 1 yourself.


Comments

Popular posts from this blog

linux - Could not find a package configuration file provided by "Qt5Svg" -

simple.odata.client - Simple OData Client Unlink -