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: Jim Correia <email@hidden>
- Date: Wed, 2 Sep 2009 23:13:06 -0400
On Sep 2, 2009, at 9:02 PM, Scott Lahteine wrote:
My preference pane uses Gestalt(gestaltUserVisibleMachineName,
&mySInt32), coercing the SInt32 into a StringPtr to get the Machine
Name. On 64-bit I get a warning because StringPtr is a 64-bit
pointer on that architecture. Does Gestalt() ensure that the
returned pointer is in the low 4 gigs of RAM, or is there a more
appropriate way to get the Machine Name that is 64-bit compatible?
extern CFStringRef CSCopyMachineName(void)
AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER;
- Jim
_______________________________________________
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