• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Watching System Configuration
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Watching System Configuration


  • Subject: Re: Watching System Configuration
  • From: "Gerriet M. Denkmann" <email@hidden>
  • Date: Fri, 21 Jul 2006 14:30:52 +0200


On 21 Jul 2006, at 07:00, Adam Knight wrote:

This is actually significantly easier:

http://www.slamb.org/svn/repos/trunk/projects/netgrowler/src/ SCDynamicStore.h
http://www.slamb.org/svn/repos/trunk/projects/netgrowler/src/ SCDynamicStore.m


Kudos to Scott Lamb for that gem.

Thanks a lot for this link!

Gerriet.



On Jul 20, 2006, at 11:56 PM, Adam Knight wrote:

http://developer.apple.com/documentation/Networking/Reference/ SysConfig/SCDynamicStore/index.html
SCDynamicStoreSetNotificationKeys: Specifies a set of specific keys and key patterns that should be monitored for changes.



--
Adam Knight
If you're not going to stop and appreciate the scenery, you're not going to
enjoy Myst. The same thing applies on the Mac as well. -- Rand Miller




On Jul 20, 2006, at 4:59 AM, Gerriet M. Denkmann wrote:

The documentation </Developer/ADC\ Reference\ Library/ documentation/Networking/Conceptual/SystemConfigFrameworks/ SC_UnderstandSchema/chapter_4_section_4.html> in the paragraph "Getting Notifications" says:

"For example, if your application needs to be aware of changes to network proxy settings while it runs, you should watch the dynamic store key associated with the network proxy settings."

But is failes to mention how this "watching" is done. The context seems to imply that there is some other method than polling. But how?

More specific: I want to get notified when the service (inside SCNetworkSetCopyCurrent() ) with interface type kSCValNetInterfaceTypeEthernet changes its kSCPropNetIPv4ConfigMethod in the kSCEntNetIPv4 protocol.

This change can be done via System Configuration -> Network -> Build-in Ethernet -> TCP/IP -> Configure IPv4: pop-up button - or by: Apple Menu -> Location if the new selected location has a different value for Configure IPv4.

Kind regards,

Gerriet.

_______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
References: 
 >Watching System Configuration (From: "Gerriet M. Denkmann" <email@hidden>)
 >Re: Watching System Configuration (From: Adam Knight <email@hidden>)
 >Re: Watching System Configuration (From: Adam Knight <email@hidden>)

  • Prev by Date: RE: How to get the image mask path
  • Next by Date: Core data and threading
  • Previous by thread: Re: Watching System Configuration
  • Next by thread: Please don't build your own SQLite without reading this (was: Re: Sqlite Version???)
  • Index(es):
    • Date
    • Thread