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: SystemConfiguration framework and Carbon CFM - completed



on Sat, 25 Jun 2005 20:29:36, Igor Garnov <email@hidden> wrote:

> Thanks everyone and especially to Mr. Quinn and Mike Kluev for their
> advise - it helped me solve the problem.
> 
> The application now works identically on both Classic and Mac OS X.

For the record (so others could benefit). The following fragment contained
bug:

_kSCDynamicStoreDomainState = ( CFStringRef )CFBundleGetDataPointerForName(
cfBundle, CFSTR( "kSCDynamicStoreDomainState" ) );

CFBundleGetDataPointerForName returns "data pointer", not "data", so
it should be:

p = CFBundleGetDataPointerForName(cfBundle,
CFSTR("kSCDynamicStoreDomainState"));
if (p) _kSCDynamicStoreDomainState = *(CFStringRef *)p;

> The only thing that surprises me a bit is that on Classic I get
> 'network lost' events repeatedly, whereas on Mac OS X it happens only
> once. The workaround for this is trivial to implement, but I am still
> curious if it's the way it's meant to be or am I doing something
> wrong... However, it's not that important.

Mike


 _______________________________________________
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



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.