Re: display Mac id

2009-06-29 Thread Kiran Kumar
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

Re: display Mac id

2009-06-24 Thread Finlay Dobbie
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

Re: display Mac id

2009-06-24 Thread Stephen Blinkhorn
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

Re: display Mac id

2009-06-24 Thread Chris Ridd
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

Re: display Mac id

2009-06-24 Thread KK
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

Re: display Mac id

2009-06-23 Thread Laurent Cerveau
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

display Mac id

2009-06-23 Thread Kiran Kumar
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