问题
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.
回答1:
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.
回答2:
See: How can I programmatically get the MAC address of an iphone. Should work (although originally asked for iPhone).
来源:https://stackoverflow.com/questions/3442274/how-to-find-mac-address-in-mac-os-x-programmatically