• 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
SystemConfiguration.framework
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

SystemConfiguration.framework


  • Subject: SystemConfiguration.framework
  • From: William Squires <email@hidden>
  • Date: Sat, 28 Nov 2009 19:02:18 -0600

Okay, here's the deal:

Norton Firewall notifies me that configd is attempting to access the internet, so I block it.

I then pull up Terminal.app and "man configd".

That in turn, leads me to "SystemConfiguration.framework SCDynamicStore.h"

So, I make a new XCode CoreFoundation Tool project, and import the SystemConfiguration.framework. I then look under "External Frameworks and Libraries" (where I dragged the system configuration framework), and look in the headers.

The comments indicate that I need to begin by calling SCDynamicStoreCreate, so I scroll down. It says

SCDynamicStoreRef
SCDynamicStoreCreate (
  CFAllocatorRef allocator,
  CFStringRef name,
  SCDynamicStoreCallBack callout,
  SCDynamicStoreContext, *context
  );

Here's where my confusion begins.

1) Would I declare this as
a) SCDynamicStoreRef myRef;
b) SCDynamicStore *myRef;
c) SCDynamicStore &myRef; // Probably not, I believe only C++ defines the "&" operator this way
d) SCDynamicStoreRef *myRef;


2) Is a CFStringRef replaceable with a literal NSString via toll-free- bridging? And exactly what does it expect this string to contain? The name of the compiled executable?

3) Do I need the callback?

4) Is there an ObjC class that encapsulates this functionality?

5) The documentation states that the SCDynamicStoreRef needs to be released. I assume using the free() function in the C <stdlib.h> header?

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: SystemConfiguration.framework
      • From: Jens Alfke <email@hidden>
    • Re: SystemConfiguration.framework
      • From: Bill Bumgarner <email@hidden>
  • Prev by Date: Re: dynamic NSPointArray allocation
  • Next by Date: Re: SystemConfiguration.framework
  • Previous by thread: Re: Is there a key path for this?
  • Next by thread: Re: SystemConfiguration.framework
  • Index(es):
    • Date
    • Thread