[NSHost currentHost] causes app to lock up

Discussion in 'Mac Programming' started by foidulus, Oct 9, 2008.

  1. foidulus macrumors 6502a

    Jan 15, 2007
    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?
  2. kainjow Moderator emeritus


    Jun 15, 2000
    Maybe look at a sample of it from Activity Monitor?

Share This Page