Re: Getting a StringPtr from Gestalt on 64-bit
Re: Getting a StringPtr from Gestalt on 64-bit
- Subject: Re: Getting a StringPtr from Gestalt on 64-bit
- From: David Duncan <email@hidden>
- Date: Thu, 3 Sep 2009 12:47:56 -0700
On Sep 3, 2009, at 12:35 PM, Scott Lahteine wrote:
As it turns out Gestalt(gestaltUserVisibleMachineName) returns error
-5551 in a 64 bit binary anyway. I wasn't seeing this because
apparently my build architecture - "Standard Universal (32/64 bit)"
- was/is for some reason launching the 32 bit binary. I had to
explicitly specify "64-bit Intel" to get it to launch exactly the
binary I wanted. Maybe this is because my system is booted into the
32-bit kernel...?
The kernel you are booted into has no effect on the binaries that will
launch. However, your project settings will determine what build is
launched, and older projects will often have i386 as default (a newly
created project shows that x86_64 is shown by default on my machine).
--
David Duncan
Apple DTS Animation and Printing
_______________________________________________
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