thanks for reply
And one more thing that ,i want to display MACID first two characters in one
textfield,and next two characters in next textfield .
The maximum length of textfield should be 2 characters,and then focus to next
textfield. Can u help me plz...
thanks,
kiran
On 24-Jun-09, at 12:2
On Tue, Jun 23, 2009 at 8:04 AM, Kiran Kumar wrote:
> Hi all,
>
> i am doing project to change MAC Address ,i want to display MACID in
> a single textbox like 00:15:e9:4c:c3:d7
>
> or 00-15-e9-4c-c3-d7 can any one help me plz ...
Apple has sample code for this:
http://developer.apple.com/sampleco
Hi Laurent,
On 24 Jun 2009, at 00:58, Laurent Cerveau wrote:
//now we get the data and do something with them
macAddressData = (CFDataRef)
IORegistryEntryCreateCFProperty
( controllerService,CFSTR(kIOMACAddress), kCFAllocatorDefault, 0);
does macAddressData now contain the raw bytes to a s
On 24 Jun 2009, at 13:45, KK wrote:
- (NSString *)getHWEthernetMAC {
NSString *deviceName = @"en0"; // Ethernet device is en0
Embedding a device name seems a bit odd to me - why not use
getifaddrs() and walk the list of actual interfaces? Something like...
struct ifaddrs *ifp, *p
I use this in my CF tool:
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
- (NSString *)getHWEthernetMAC {
NSString *deviceName = @"en0"; // Ethernet device is en0
int mib[6];
size_t len;
char *buf;
unsigned char *pt
You can use IOKit UserLibg get the MAC hardware address. I did not
retest it though (it comes from older code) so you probably have to
check for small bugs.
laurent
kern_return_t kernResult;
mach_port_t masterPort;
io_service_t tmpService, controllerService;
CFDataRef
Hi all,
i am doing project to change MAC Address ,i want to display MACID in
a single textbox like 00:15:e9:4c:c3:d7
or 00-15-e9-4c-c3-d7 can any one help me plz ...
Thanks,
kiran
The information contained in this email and any attachments is confidential and
may be subject to copyright or