• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Identifying a specific Mac model
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Identifying a specific Mac model
      • From: Robert Tillyard <email@hidden>
  • Prev by Date: Re: API to determine status of System Integrity Protection?
  • Next by Date: Re: Display USB Video Camera output : AVFoundation?
  • Previous by thread: Re: Accessibility API: get list of allowed apps
  • Next by thread: Re: Identifying a specific Mac model
  • Index(es):
    • Date
    • Thread