how to find MAC address in MAC OS X programmatically?

眉间皱痕 提交于 2020-01-20 04:20:27

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!