Re: SystemConfiguration framework and Carbon CFM - completed
Re: SystemConfiguration framework and Carbon CFM - completed
- Subject: Re: SystemConfiguration framework and Carbon CFM - completed
- From: Mike Kluev <email@hidden>
- Date: Mon, 27 Jun 2005 02:38:42 -0800
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:
This email sent to email@hidden