Re: Requirements and Mac OS X evolution
site_archiver@lists.apple.com Delivered-To: installer-dev@lists.apple.com 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. (See how long QuickDraw has been supported, for example.) -pmb _______________________________________________ Do not post admin requests to the list. They will be ignored. Installer-dev mailing list (Installer-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/installer-dev/site_archiver%40lists.a... 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. 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. This email sent to site_archiver@lists.apple.com
participants (1)
-
Peter Bierman