[wx-dev] wxGetOsDescription / wxGetOsVersion for OSX

Stefan Csomor csomor at advancedconcepts.ch
Wed Jun 25 02:44:25 PDT 2008


Hi

another chance for clean=ADup time :

on OSX the build version in the =B3About this mac=B2 reflects the number kn=
own
to humans, eg 10.5.3, the uname output however reflects the =8CDarwin=B9 po=
int
of view, in this case 9.3.0.

Currently wxMac is using the Gestalt call which allows me to get the version
number understandable to humans, however eg cocoa base builds are using the
uname versioning, and wxGetOsDescription is returning the darwinian
numbering already now

the Gestalt call is available both in Cocoa and Carbon environments, so I
could continue to use that call, but of course this might also be the time
to remove the old code entirely and use the new uname numbers throughout.

Also should I add wxOperatingSystemId and wxPortId s for iPhone or would
they remain under OSX_DARWIN / wxPORT_OSX (former wxPORT_MAC), I see that
the WinCE does have it=B9s own numbers, but other systems like the maemo do=
n=B9t
have a separate ID

Thanks for your opinions

Stefan



-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.wxwidgets.org/pipermail/wx-dev/attachments/20080625/c52fa=
51a/attachment.htm


More information about the wx-dev mailing list