CocoaDev

Edit AllPages

How do I get the local host name, not this:

mikesmachine.local

but this:

Mike’s Machine


This used to be called “Rendezvous Name” but is now called, simply, “Computer Name”. The following snippet comes from the page HowToGetHardwareAndNetworkInfo …


Since CFString and NSString are TollFreeBridged, this could be simplified to:


Tnx:)

Same type of question:

How do i get the name of the startupDisk?


GettingTheRootVolumeName

Use google to search cocoadev. Works well. http://www.google.com/search?q=site%3Acocoadev.com+volume+name

(LaunchBar 4 users: use search template http://www.google.com/search?q=site%3Acocoadev.com+* )