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 (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

Reply via email to