Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Getting the computer name




On 14 Dec 2004, at 15:40, Tim Hewett wrote:

Hello,

I've scoured the manuals, can't seem to find this. I need to
get the name of the computer, e.g. "Fred Blogg's Computer".
I've tried gethostname() but this gives "Fred-Blogg's-
Computer.local", and this changes to something set by the
network service provider when you go online.
SCDynamicStoreCopyComputerName


Fred

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden
References: 
 >Getting the computer name (From: Tim Hewett <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.