• 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
Re: Getting system information (was Re: Newbie: My first app, how to?)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Getting system information (was Re: Newbie: My first app, how to?)


  • Subject: Re: Getting system information (was Re: Newbie: My first app, how to?)
  • From: "M. Uli Kusterer" <email@hidden>
  • Date: Fri, 24 Sep 2004 14:25:41 +0200

At 6:57 Uhr -0500 24.09.2004, Mike Hall wrote:
Wouldn't invoking Apple System Profiler (ASP) be another option here. You just need to parse what you want from the output of that. Let Apple worry about the correct source of all this things. It is a lot of output though.

That was in the blog article whose URL was posted here. The problem with any variant of ASP (be it the command-line tool or the actual GUI app), would be that the tool takes a good amount of time to collect all that information.


And until 10.3, ASP only allowed getting all or nothing. Starting with 10.3 you can actually request a particular bit of information, so yes, there it would be an option.

Still, I think a call to a Carbon API for getting the system version is a lot less effort (and wastes a lot less CPU cycles) than launching another app, having it retrieve the info and convert it to text, and then having to parse that back into the kind of computer-processable information you need.
--
Cheers,
M. Uli Kusterer
------------------------------------------------------------
"The Witnesses of TeachText are everywhere..."
http://www.zathras.de
_______________________________________________
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
  • Follow-Ups:
    • Re: Getting system information (was Re: Newbie: My first app, how to?)
      • From: Mike Hall <email@hidden>
References: 
 >Newbie: My first app, how to? (From: Rakhi <email@hidden>)
 >Re: Newbie: My first app, how to? (From: Chris Garaffa <email@hidden>)
 >Getting system information (was Re: Newbie: My first app, how to?) (From: "M. Uli Kusterer" <email@hidden>)

  • Prev by Date: Re: reusable custom views?
  • Next by Date: Re: Unit testing framework suggestions?
  • Previous by thread: Getting system information (was Re: Newbie: My first app, how to?)
  • Next by thread: Re: Getting system information (was Re: Newbie: My first app, how to?)
  • Index(es):
    • Date
    • Thread