Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: determine CPU type at runtime




Le 25 févr. 08 à 22:48, Paul Archibald a écrit :

One of the apps I am working on has minor issues when running on an Intel Mac, so I would like to be able to detect the cpu type at runtime. I just need a method like:

bool ThisAppIsRunningOnAPowerPC()

Is this a job for Gestalt? It looks so complicated.

Why do you need it at runtime. You could not determine it at compile time?
#if __i386__
// Intel 32 bit code
#else
// other processors
#endif



_______________________________________________ Do not post admin requests to the list. They will be ignored. Xcode-users mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/xcode-users/email@hidden

This email sent to email@hidden
References: 
 >determine CPU type at runtime (From: Paul Archibald <email@hidden>)



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.