Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2009-10

Getting hardware information on Mac OS X

2 messages · 2 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Roland Turčan - RoTurSoft

Hello all,

How can I get information about CPU, size of RAM, ... on Mac OS X?

BTW: The details about version of operating system I have found in: /System/Library/CoreServices/SystemInfo.plist

maybe it's useful for somebody.

Thanks.

TRoland;

Reply by email

dmitry boyarintsev
to Roland Turčan - RoTurSoft
Roland Tur?an - RoTurSoft wrote
How can I get information about CPU, size of RAM, ... on Mac OS X?

There's I/O Registry in Mac OS X for such purposes. http://developer.apple.com/mac/library/documentation/DeviceDrivers/Conceptual/IOKitFundamentals/TheRegistry/TheRegistry.html#//apple_ref/doc/uid/TP0000014-TP9

I don't know if there's any Pascal based samples, but i'm sure there should be some C/C++-based samples /O Registry is the part of IOKit framework. IOKit headers are not included in FPC headers, you'll need to convert headers (or only necessary functions/constants) manually.

thanks,
dmitry

Reply by email