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



On 6/21/05 1:47 PM, Igor Garnov at email@hidden wrote:

> Despite they're called as though they're constants, they appear to be
> variables. How do I get their meaning at run time to make my code work?
> 
> Yes, just in case - it's all about using SC to notify me when I lose
> network connection (a cable is disconnected) on Mac OS X. On Mac OS 9
> I'm using kOTStackWasLoaded and kOTStackIsUnloading notification
> messages.
> 
> Any help is greatly appreciated.

Igor,

First, I would suggest that you split your app into bundled app containing
an OS9 CFM part and an OSX mach-o part.  They can still share code, be built
from mostly the same sources, but it makes life on OS X significantly
easier.

Second, you need to embed these CFString's into your own code to pass to the
framework.  You can probably just copy the definitions into your code if you
can't directly include the header file.

Later,
-- 
David Rehring                  Psychos do not explode when light hits
VP of Research and Development them, no matter how crazy they are...
Atimi Software, Inc.
www.atimi.com                  And totally insane guy!


 _______________________________________________
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: 
 >SystemConfiguration framework and Carbon CFM (From: Igor Garnov <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.