• 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
Getting a StringPtr from Gestalt on 64-bit
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Getting a StringPtr from Gestalt on 64-bit


  • Subject: Getting a StringPtr from Gestalt on 64-bit
  • From: Scott Lahteine <email@hidden>
  • Date: Wed, 2 Sep 2009 21:02:23 -0400

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?

--
Scott Lahteine
Thinkyhead
http://thinkyhead.com/

_______________________________________________

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 a StringPtr from Gestalt on 64-bit
      • From: Kyle Sluder <email@hidden>
    • Re: Getting a StringPtr from Gestalt on 64-bit
      • From: Jim Correia <email@hidden>
  • Prev by Date: NSServices
  • Next by Date: FW: Image Problem
  • Previous by thread: RE: NSServices
  • Next by thread: Re: Getting a StringPtr from Gestalt on 64-bit
  • Index(es):
    • Date
    • Thread