how to find MAC address in MAC OS X programmatically?

前端 未结 2 1387
故里飘歌
故里飘歌 2020-12-17 05:16

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.

2条回答
  •  别那么骄傲
    2020-12-17 06:15

    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.

提交回复
热议问题