Tornado_
asked on
Obtaining the network MAC address via COCOA, objective C, in a iphone / ipad enviroment.
Hi Guys
Wondered if anyone could tell me how through code snippet how to obtain the mac network address of a device. Using cocoa / objective c, it needs to work within the ipad however any suggestions where the code has been used in a IPhone enviroment we can try/test as we believe these operating systems are extremely simliar. Any documentation links where this has been explained would greatly appreciated ( searching for network mac addresses on the mac is really hard). Thank you for your time and help in this matter it is greatly appreciated.
All the best and cheers.
Oli
Wondered if anyone could tell me how through code snippet how to obtain the mac network address of a device. Using cocoa / objective c, it needs to work within the ipad however any suggestions where the code has been used in a IPhone enviroment we can try/test as we believe these operating systems are extremely simliar. Any documentation links where this has been explained would greatly appreciated ( searching for network mac addresses on the mac is really hard). Thank you for your time and help in this matter it is greatly appreciated.
All the best and cheers.
Oli
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
http://developer.apple.com/mac/library/samplecode/GetPrimaryMACAddress/Introduction/Intro.html
Here is the code:
http://developer.apple.com/mac/library/samplecode/GetPrimaryMACAddress/Listings/GetPrimaryMACAddress_c.html#//apple_ref/doc/uid/DTS10000698-GetPrimaryMACAddress_c-DontLinkElementID_3