Re: network configuration change notification
Re: network configuration change notification
- Subject: Re: network configuration change notification
- From: Michael Brian Bentley <email@hidden>
- Date: Fri, 27 Nov 2015 16:56:41 -0800
- Organization: Crenelle Technologies
The question regarding kNotifySCNetworkChange comes from an abundance of
caution. It seems to work just fine, but as you say there may be a
better way.
I've been using it to indicate when to check for an SSID change.
-Mike
On 11/26/15 12:25 AM, Quinn "The Eskimo!" wrote:
On 25 Nov 2015, at 18:47, Michael Brian Bentley <email@hidden> wrote:
With the switch to NEHotspotHelper, I wonder if the following still works to indicate a network configuration change occurred?
"com.apple.system.config.network_change" is actually defined as a symbolic constant, kNotifySCNetworkChange from <notify_keys.h>, so you should use that rather than a hard-coded string because it makes it clear that you're using public API.
Beyond that, I'm not sure why you're concerned that NEHotspotHelper might impact on this. I fully expect this notification to work as well as it ever did.
What behaviour are you keying off this notification? In most cases there's a better approach.
Share and Enjoy
--
Quinn "The Eskimo!" <http://www.apple.com/developer/>
Apple Developer Relations, Developer Technical Support, Core OS/Hardware
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Macnetworkprog mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Macnetworkprog mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden