views:

101

answers:

2

Hello, I am new to Mac OS X and X code and want to know how to find the MAC address of a machine programmatically in OS X.

A: 

See: http://stackoverflow.com/questions/677530/how-can-i-programmatically-get-the-mac-address-of-an-iphone. Should work (although originally asked for iPhone).

Kevin Sylvestre
yes..I have gone through that post, but will it work for iMac and MacBooks too? Also if I am not wrong it would be a command line application, right? Thank you.
Aniket
It should. Have you tried it?
Kevin Sylvestre
A: 

There's a sample from the Mac OS X Reference Library that gets the MAC address of the primary, built-in interface from the I/O Registry. It also includes an Xcode project.

Pedro d'Aquino