Problem with NSHost
Problem with NSHost
- Subject: Problem with NSHost
- From: Arthur VIGAN <email@hidden>
- Date: Tue, 18 Feb 2003 20:20:25 +0100
Hi,
I am trying to display the current IP of a Mac in a menu using:
NSHost *host = [NSHost currentHost];
NSString *ipAddress = [host address];
It's working well when I use it once, but if I disconnect, or if the IP
changes, I always get the same IP from NSHost.
I tried to use [NSHost setHostCacheEnabled:NO] or [NSHost
flushHostCache], but it didn't change anything...
Any idea to have it working?
Thanks in advance,
-- Arthur
_______________________________________________
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.