| |||
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
I'm trying to write a method to determine the user friendly machine name (For example "PowerBook G4") in a Cocoa app.
As far as I know the Carbon Gestalt Manager has to be used, and the gestaltUserVisibleMachineName looks like the correct selector. I wrote the attached code but it doesn't work. Gestalt() succeeds and it returns a seemingly correct value. However GetIndString makes sMachineName into an empty string. Does anybody know why ?
| References: | |
| >User friendly machine name (gestaltUserVisibleMachineName?) (From: Rolf <email@hidden>) |
| Home | Archives | FAQ | Terms/Conditions | Contact | RSS | Lists | About |
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.