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 (Cocoa-dev@lists.apple.com)
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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com
This email sent to arch...@mail-archive.com