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

java - inputmismatch exception -

c - zlib and gdi32 with OpenSSL? -

Formatting string according to pattern without regex in php -