• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: API for fetching the computer name in cocoa
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: API for fetching the computer name in cocoa


  • Subject: Re: API for fetching the computer name in cocoa
  • From: "Gerriet M. Denkmann" <email@hidden>
  • Date: Fri, 12 Jun 2009 09:37:42 +0200


On 12 Jun 2009, at 09:08, Tito Ciuro wrote:

Hi Arun,

How about -[NSProcessInfo hostname]? Check the following document for more info:

I just added this to my code: NSProcessInfo *pi = [ [ NSProcessInfo alloc ] init ]; NSString *d = [ pi hostName ]; [ pi release ]; NSLog(@"%s hostName → \"%@\"", __FUNCTION__, d); and got: ... hostName → "quitte.local"

which is not quite the same, but interesting nevertheless.

Amazing how many ways to get a hostname do exist!

Kind regards,

Gerriet.

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: API for fetching the computer name in cocoa
      • From: "Adam R. Maxwell" <email@hidden>
References: 
 >Re: API for fetching the computer name in cocoa (From: "Gerriet M. Denkmann" <email@hidden>)
 >Re: API for fetching the computer name in cocoa (From: Graham Cox <email@hidden>)
 >Re: API for fetching the computer name in cocoa (From: Tito Ciuro <email@hidden>)

  • Prev by Date: Re: [NSTask] -launch return
  • Next by Date: Re: [NSTask] -launch return
  • Previous by thread: Re: API for fetching the computer name in cocoa
  • Next by thread: Re: API for fetching the computer name in cocoa
  • Index(es):
    • Date
    • Thread