Re: Get Machine Type string
Re: Get Machine Type string
- Subject: Re: Get Machine Type string
- From: Shawn Erickson <email@hidden>
- Date: Fri, 28 Jul 2006 07:58:02 -0700
On Jul 28, 2006, at 7:51 AM, matt jaffa wrote:
Hi,
Is there any cocoa api or other api that can get what type of machine
it is. i.e. MacBook Pro, Powerbook, etc. I can easily get the machine
model like MacBookPro1,1.
I should likely also mention using system_profiler and parsing the
output.
For example "system_profiler -xml SPHardwareDataType" (-xml gives you
a plist) and pull out the "machine_name" entry.
-Shawn
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden