Re: Requirements and Mac OS X evolution
Re: Requirements and Mac OS X evolution
- Subject: Re: Requirements and Mac OS X evolution
- From: Stéphane Sudre <email@hidden>
- Date: Mon, 16 Oct 2006 21:37:43 +0200
On lundi, octobre 16, 2006, at 01:10 AM, Peter Bierman wrote:
At 12:32 PM +0200 10/14/06, Stéphane Sudre wrote:
It seems that there are some evolutions in Mac OS X that can impact
requirements, sysctl ones for instance.
On Mac OS X 10.2, the physical memory is known via hw.physmem.
On Mac OS X 10.4, the physical memory is known via hw.memsize.
Considering that if one name changed once, all can change in the
future, what is the official recommended way to deal with this kind
of "oops, we changed it again" issue?
Typically, the previous mechanism is supported up until the point that
it breaks.
In your example, hw.physmem works until the machine has 2GB of RAM.
This was an acceptable limitation for the first 20 years of sysctl. > :-)
So use whatever is documented as best at the time you write the code,
and you shouldn't have to change your code until there isn't any way
to make that work.
(See how long QuickDraw has been supported, for example.)
Ok, so basically, the only solution is still the InstallationCheck
script, a solution which is still the best one and supported for 20
years.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Installer-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden