Ask a Question related to Mac Programming, Design and Development.
-
Sean McBride #1
Programatically determining BootROM version?
What is the correct way to determine the BootROM version? I want to do
so because there's a bug that's fixed with a firmware update and I need
to be able to detect so I can warn the user if they need to update.
There doesn't seem to be a Gestalt or sysctl AFAICT... maybe in the
IORegistry?
Thanks!
Sean McBride Guest
-
Acrobat version - programatically
Hi, Is there any way to get Acrobat version programactically? This is because, i want to do avoid some functionality depending on acrobat... -
determining '@ContextRoot()' programatically
You can get the url in AS: mx.core.Application._url I have not seen any equivalent to get the context root. You CAN get the contextroot in... -
How do I programatically select....
What I have is the following. A list box with dates in it. A list box with selected Dates in it.. The first box is populated from a... -
Adding <div> tag programatically
Hi All, I would like to add the <div> tag programatically from the code-behind of my aspx file. Basically, I would like to a table to this <div>.... -
Programatically add column
Hi. My problem is how to add several columns with a checkbox programatically to a datagrid. Anybody with some pointers? -as -
Alan Kruger #2
Re: Programatically determining BootROM version?
Boot into OpenFirmware and check the version.
Sean McBride wrote:
> What is the correct way to determine the BootROM version? I want to do
> so because there's a bug that's fixed with a firmware update and I need
> to be able to detect so I can warn the user if they need to update.
>
> There doesn't seem to be a Gestalt or sysctl AFAICT... maybe in the
> IORegistry?
>
> Thanks!Alan Kruger Guest
-
Sean McBride #3
Re: Programatically determining BootROM version?
In article <H%rdb.81952$xx4.9044943@twister.neo.rr.com>,
Alan Kruger <akruger@kent.edu> wrote:
hehehe. But, as I said in the subject line, I'm looking to determine> Boot into OpenFirmware and check the version.
this programatically, more specifically with C. Apple System Profiler
is able to get the info from somewhere (and show it), I'd like to do the
same from my code.
Sean McBride Guest
-
David Phillip Oster #4
Re: Programatically determining BootROM version?
In article <cwatson-70C9C0.00345626092003@aeinews.aei.ca>,
Sean McBride <cwatson@cam.org> wrote:
Although this doesn't actually answer your question, you might look at> What is the correct way to determine the BootROM version? I want to do
> so because there's a bug that's fixed with a firmware update and I need
> to be able to detect so I can warn the user if they need to update.
The Nitrogen Manifesto, which documents a library called "Nitrogen",
which wraps the Carbon API, making the Carbon API much easier to use
(Nitrogen handles all the CFRetain/CFRelease nonsense, and converts
error codes to exceptions so that routines can return useful values.)
look at <http://nitric.sourceforge.net>. In Nitrogen, you can say
something like:
Namespace N = Nitrogen;
std::string s = N::Convert<std::string>(
N::CFCast<CFStringRef>(
N::CFDictionaryGetValue(
N::CFCast<CFDictionaryRef>(
N::CFPropertyListCreateFromXMLData(
N::CFURLCreateWithFileSystemPath(
CFSTR("/System/Library/CoreServices/SystemVersion.plist"),
KCFURLPOSIXPathStyle,
false
)
)
),
CFSTR("ProductBuildVerson")
)
)
);
to get the build number of the O.S.
The ROM firmware value is probably available through IOKit, in a similar
way.
David Phillip Oster Guest



Reply With Quote

