Re: Gestalt
Re: Gestalt
- Subject: Re: Gestalt
- From: Sean McBride <email@hidden>
- Date: Wed, 21 Sep 2011 15:52:35 -0400
- Organization: Rogue Research Inc.
On Wed, 21 Sep 2011 13:45:38 -0600, koko said:
>When a user buys we ask for a registration on first run. We like to get
>the OS name and version number from their system to include in out reg
>database.
I think that's a reasonable use of Gestalt().
>I just want to be sure that using Gestalt will not break in the future
>or is there a better way than that below to get the OS version.
It's not deprecated and has been working since 10.0 and before. Should be safe.
>- (void) getSystemVersionMajor:(unsigned *)major minor:(unsigned *)minor
>bugFix:(unsigned *)bugFix {
>
> OSErr err;
> SInt32 systemVersion, versionMajor, versionMinor, versionBugFix;
> if ((err = Gestalt(gestaltSystemVersion, &systemVersion)) != noErr)
>goto fail;
As I said, don't use gestaltSystemVersion. Ever.
--
____________________________________________________________
Sean McBride, B. Eng email@hidden
Rogue Research www.rogue-research.com
Mac Software Developer Montréal, Québec, Canada
_______________________________________________
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