how to collect system info in osx using objective c

前端 未结 5 1099
予麋鹿
予麋鹿 2021-02-01 10:56

Is there any method / API defined to collect system info in osx. I want to write utility which will collect hardware information like CPU,RAM,Network adapter. Any idea ? Thanks

5条回答
  •  难免孤独
    2021-02-01 11:29

    You can use the scripting bridge in Leopard (or newer) to get the information you want directly from Apple System Profiler.

提交回复
热议问题