• 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: Getting Computer Name
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Getting Computer Name


  • Subject: Re: Getting Computer Name
  • From: Steve Steinitz <email@hidden>
  • Date: Sun, 20 Jun 2010 22:07:57 +1000

Hi Paul,

On 20/6/10, Paul Sanders wrote:

It looks like SCDynamicStoreCopyComputerName is not prototyped
correctly so the compiler assumes it returns an int.  In what I assume
is a 64-bit build this will lose the top 32 bits of the CFStringRef.

Yes, your diagnosis holds water. I'm building and running in 64-bit mode. I'm wondering how to keep those top 32 bits.


Are you #including <CoreServices/CoreServices.h>?

I wasn't. I added it. Were you wondering if it would make a difference?

Other than that I am compiling 32 bit so I don't know what else might be wrong with the setup of your project but at least now you have an idea of what to look for.

Yes, thanks a lot for your ideas. I think you're on the right track.

Best regards,

Steve

_______________________________________________

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: Getting Computer Name
      • From: "Paul Sanders" <email@hidden>
References: 
 >Re: Getting Computer Name (From: "Paul Sanders" <email@hidden>)

  • Prev by Date: Re: Getting Computer Name
  • Next by Date: Re: Getting Computer Name
  • Previous by thread: Re: Getting Computer Name
  • Next by thread: Re: Getting Computer Name
  • Index(es):
    • Date
    • Thread