Docs @ Psychtoolbox Wiki : MacModelName

Search PTB Function help:
homepsychtoolbox.orgpage updateslogin

MacModelName

PsychtoolboxPsychOneliners

modelName=MacModelName
Return the model name of the Macintosh.

OS9: Get the model name from the struct returned by Screen('Computer');

OSX: Get the computer identifier as reported by open firmware. In the
OSX Psychtoolbox that is provided in the struct returned by
Screen('Computer'). Convert that identifier to Apple's marketing
name for the computer. To do that we use the mapping of identifier to
product names found in:
/System/Library/SystemProfiler/SPPlatformReporter.spreporter/Contents/
Resources/English.lproj/Localizable.strings.
There is no official Apple-recommended way to uncover the marketing
name. However, this method works and should be reasonably robust.

See also: Gestalt, Screen('Computer?'), OSName, AppleVersion




Path   Retrieve current version of MacModelName.m from berliOS: beta | view WebSVN changelog of trunk branch
Psychtoolbox/PsychOneliners/MacModelName.m


Valid XHTML 1.0 Transitional :: Valid CSS :: Powered by WikkaWiki
Page was generated in 0.0223 seconds