Re: MAC Address of machine.
Re: MAC Address of machine.
- Subject: Re: MAC Address of machine.
- From: Ryan McGann <email@hidden>
- Date: Sun, 17 Nov 2002 22:04:02 -0800
On Sunday, November 17, 2002, at 05:44 PM, Peter Hudson wrote:
I need to get the MAC address of the machine that my application is
running on. I figured there must be a way in Cocoa to do it.
Any help much appreciated.
Apple has several examples of how to do this on their web site:
http://developer.apple.com/samplecode/Sample_Code/Networking/
GetHWEthernetAddr.htm
http://developer.apple.com/samplecode/Sample_Code/Networking/
GetMACAddressSample.htm
http://developer.apple.com/samplecode/Sample_Code/Networking/
GetPrimaryMACAddress.htm
All of these are C examples and can be used from Cocoa. The Cocoa
frameworks itself do not have this capability that I'm aware of though.
You'll need either the System Configuration framework or the IOKit
framework added to your project.
Ryan
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.