I created an osx application and want to display the username in my ui. How can I get the username for the actual user / maybe?
You can use the NSUserName() function:
NSUserName()
var username = NSUserName()!
Source: https://habr.com/ru/post/1203426/More articles:How can I get the referent for connecting socket.io - node.jsWhy does the left join cause NEWID () to be implemented earlier than the join? - sqlWhy does newid () materialize at the very end of the request? - tsqlWhat are the limitations of minimongo (meteor)? cursor.toArray () not working on client side - javascriptlist of all elements in buffered channel - goHow to use Viewport marker management on Android - performanceHow to change the Eclipse-Groovy Groovy plugin libraries? - eclipseNeo4j: MERGE creates duplicate nodes - mergePanoramic Search AVPlayer - iosShadow attenuation along with SKSpriteNode, which casts it - iosAll Articles