It is currently Sat Aug 24, 2019 6:52 pm

All times are UTC + 1 hour




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: A more up to date OSVersion.
PostPosted: Sun Apr 21, 2019 8:22 pm 
Offline
Addict
Addict
User avatar

Joined: Thu Aug 07, 2003 7:01 pm
Posts: 3109
Location: United Kingdom
It would be nice if OSVersion() was updated (the docs only list up to mac osx 10.11), possibly with a new command OSVersionString().

_________________
http://www.SinisterSoft.com <- My Business website
http://www.ReportComplete.com and http://www.ReportPlus.co.uk <- School end of term reports system


Top
 Profile  
Reply with quote  
 Post subject: Re: A more up to date OSVersion.
PostPosted: Tue Jun 11, 2019 6:08 pm 
Offline
New User
New User

Joined: Tue Jun 11, 2019 5:50 pm
Posts: 2
Location: Germany
I would like to see this updates too. I noticed that in 5.71 beta 1 there also #PB_OS_MacOSX_10_12 available but nothing for 10.13-10.15

If I look at the return paramater of OSVersion unter macOS the value returned is just 11200 so it should be possible to already include values for 10.16 and 10.17 in advance. Or maybe just add functions like OSVersionMajor() and OSversionMinor() that passes the OS version as an integer?
I know that it is possible to use processInfo operatingSystemVersion (really quick and dirty) but it would be nice to have a native functions for this:
Code:
NSProcessInfo = CocoaMessage( 0, 0, "NSProcessInfo processInfo" )
If NSProcessInfo
  NSVersion = CocoaMessage( 0, NSProcessInfo, "operatingSystemVersion" )
  vMajor = PeekI( NSVersion )
  vMinor = PeekI( NSVersion + 8 )
  vPatch = PeekI( NSVersion + 16 )
  Debug( "Version: " + Str( vMajor ) + "." + Str( vMinor ) + "."+ Str( vPatch ) )
EndIf


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  

 


Powered by phpBB © 2008 phpBB Group
subSilver+ theme by Canver Software, sponsor Sanal Modifiye