Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

foidulus

macrumors 6502a
Original poster
Jan 15, 2007
904
1
I'm trying to get the current host name of the mac that is running my app, but the [NSHost currentHost] locks the app up, the machine in question is in the /etc/hosts file and if I type hostname on the command line I get the name I expect, but the thing just locks up...

Any suggestions on what may be wrong?
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.