Re: API for fetching the computer name in cocoa
Re: API for fetching the computer name in cocoa
- Subject: Re: API for fetching the computer name in cocoa
- From: Eric Schlegel <email@hidden>
- Date: Fri, 12 Jun 2009 09:44:39 -0700
On Jun 12, 2009, at 7:14 AM, Adam R. Maxwell wrote:
There is also NSHost, which has -name and -names.
However, be aware that [[NSHost currentHost] name] can block for an
exceedingly long time, so if you use it, always call it on a thread;
and some of other API recommended here, such as
SCDynamicStoreCopyComputerName, is probably a better choice.
-eric
_______________________________________________
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