Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: attached gateways



okay, i've got a little code snippet that's getting me a little closer on the systemconfiguration thing:

SCDynamicStoreRef storeRef = SCDynamicStoreCreate(nil, nil, nil, nil);
if (storeRef) {
CFPropertyListRef x = SCDynamicStoreCopyValue(storeRef, CFSTR ("State:/Network/Service/en0/IPv4"));
CFShow(x);
CFRelease(x);
}




it prints out the data i want, but why can't i do the same with "State:/Network/Service" ?

shouldn't that print out the contents starting at that level?

instead it prints "(null)" and dies with a SIGBUS error.

- chase



_______________________________________________
Do not post admin requests to the list. They will be ignored.
Macnetworkprog mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/macnetworkprog/email@hidden

This email sent to email@hidden
References: 
 >Re: attached gateways (From: "Jamie Wood" <email@hidden>)
 >Re: attached gateways (From: Chase <email@hidden>)
 >Re: attached gateways (From: Chase <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.