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: Notify Application when all system items have been loaded




On Dec 23, 2005, at 3:29 PM, Carl Smith wrote:

I was wondering if anyone knows of some way that my app can tell when all the OS items have been loaded and started at startup.

My problem is that I have a NKE and an application. My NKE attaches itself to all the interfaces when it is loaded, my application loads my NKE, and my application is started automatically at startup. What I have been seeing is that my application loads my NKE before all the interfaces are up. In other words my NKE will attach itself to the built in Ethernet but not the Airport card. Now if I shut down my app, unload my NKE and start everything again, manually without a system restart then my NKE will see all the interfaces, including the Airport.

So what I would like is some way that my app knows not to load the NKE until the OS is finished with all it's overhead. Is there some API call or notification I can use in my application to check the status of the OS and it's start up routine?

Thanks
Carl

Hi Carl,
I think there are a couple of issues you have to work with before going too far down this path. There are solutions, but I suspect that your current path has some bumps in it.


The main thing to consider is that the list of interfaces is dynamic. So, although you may wait until the "startup" stuff is complete, that might not be satisfactory for what you're trying to do. For example, the system might start without Airport because it's turned off by the user. Does it matter to you if it's enabled after an hour or so? What happens if Airport is there and then it's turned off? And even Ethernet "en0" might be configured off.

I suspect that you really don't want to wait for "startup complete" but instead need to respond to interface transitions as and when they occur. The system configuration framework will be your friend in that endeavour.

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

This email sent to email@hidden
References: 
 >Notify Application when all system items have been loaded (From: "Carl Smith" <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.