Re: Newbie: My first app, how to?
Re: Newbie: My first app, how to?
- Subject: Re: Newbie: My first app, how to?
- From: Chris Garaffa <email@hidden>
- Date: Wed, 22 Sep 2004 20:58:20 -0400
On Sep 22, 2004, at 3:06 PM, Rakhi wrote:
Greetings Developers,
Greetings, Rahki.
- Display the following information...
- Machine info. : Make, Model, Serial Number, IP Address, MAC
Address, Graphics Adapter
- Monitor Description : Display Resolution (e.g. 1023x768), Color
Depth (e.g. 24 bit color)
- Sound, Video and Game Controllers: Recover the name and description
of each device installed
- Disk Drives : Name, Type (CD-ROM, FIXED, FLOPPY, DVD etc), Label,
File System, Total Space (in MB), Free Space (in MB)
- CPU : Processor Type, Processor Count, Speed, Socket, Voltage,
Co-Processor
- MEMORY : Capacity (in MB)
I recently created a program for the office that does many of these
things, using Cocoa among other technologies.
How do I ?
- Refer the window in my code?
One way to do it would to create an outlet in your controller class to
the Window. For a "simple" program such as this might be, that may be
the way to go.
- Get these values? which library/framework to use?
You'll end up using a combination of Cocoa, Carbon, IOKit and possibly
others. There's plenty of documentation on Apple's site, as well as
available around the web.
- get sample code for above to begin with?
I outlined the techniques of my program on my blog:
<http://moondrop.nilzero.com/archives/2004/07/01/
getting_system_information_via_cocoa_and_carbon.php>. Feel free to
borrow/steal/whatever-you'll-call-it some of the code and information.
If you'd like the actual source code, I can dig it up and post it up on
my site for you. This will provide you with the machine type (not
guaranteed to be exact - read the post for more information), serial
number, OS version, user name, RAM, CPU speed, CPU count, HD capacity,
and whether AirPort is available.
There are probably better ways to do many of the things I've done, but
that's what I came up with.
Regards, Rakhi
Best of luck
--
Chris Garaffa
[e] email@hidden
_______________________________________________
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