About installer-gui-script and system.compareVersions
About installer-gui-script and system.compareVersions
- Subject: About installer-gui-script and system.compareVersions
- From: skyspace001 skyspace001 <email@hidden>
- Date: Wed, 6 May 2009 15:02:17 +0800
hi,
In Mac OS X v10.4 and later, there is a namespace 'installer-gui-script'.
This object have many useful methods, such as 'compareVersions'.
To my puzzled, I am not clear with the theory of the function
'system.compareVersions' in 'installer-gui-script'. It is different
from the famous 'NAVR' of RPM version comparision.
JS: Compare Result:10.5.1 < 10.5.2
JS: Compare Result:10.5.a > 10.5.2 (Different from RPM version comparision)
JS: Compare Result:10.5.a > 10.5.0
JS: Compare Result:10.5.a > 10.5.
JS: Compare Result:10.5.a > 10.5
JS: Compare Result:10.5. > 10.5
JS: Compare Result:10.5.0 = 10.5 (???????)
JS: Compare Result:10.5.0 < 10.5.
JS: Compare Result:10.5... > 10.5..
JS: Compare Result:10 < a
JS: Compare Result:A < a
JS: Compare Result:_ < a
JS: Compare Result:_ > .
JS: Compare Result:10 > 9
JS: Compare Result:( < .
JS: Compare Result:10.1 < 101
JS: Compare Result:10(1) < 10.1
JS: Compare Result:10(1) < 101
Anybody who know 'installer-gui-script' or theory of the function
'system.compareVersions' please give your hand to me. Thanks!
Best Regards,
Skyspace.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Accessibility-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden