Identifying a specific Mac model
Identifying a specific Mac model
- Subject: Identifying a specific Mac model
- From: John Daniel <email@hidden>
- Date: Sun, 13 Sep 2015 20:09:27 -0400
Hello,
Does anyone know of an API or utility that will identify specific Mac models? The “Model Identifier” like “MacBook8,1” is not sufficient to uniquely describe a model. MacBook8,1 covers all colours of the new MacBook. I am trying to differentiate the silver, from the space grey, from the gold.
My app has an animation where it cycles through various Macs like a slot machine, finally landing on the user’s specific machine. I used to just look at the “Model Identifier”. I could pretty easily identify the matching machine image from /System/Library/CoreServices/CoreTypes.bundle/Contents/Resources.
However, the images for the new retina MacBook are in a different location. I found where they live in an apparently randomly-named framework, but I still can’t connect a specific image with the user’s specific machine. There is a private API for the UIDevice class in iOS that provides similar information. Is there anything like this for the Mac?
Thanks,
John Daniel
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden