views:

24

answers:

1

How can I, within my Cocoa app, get a notification when the currently running VPN connection disconnects? I'm running Snow Leopard.

+1  A: 

You may be able to use the System Configuration framework for this. You can examine the System Configuration hierarchy with scutil(8), and you might have a look at HardwareGrowler's source code for examples of how to use the framework.

Also, documentation:

Peter Hosey