I would required to implement the OSX application online/offline mode.
When internet is available the app icon should online() otherwise the icon should change to offline(
).
I have implemented checking the internet connection availability(Refered Reachability sample code) but i don't have idea about how to implement online/offline mode like continuously checking the internet connection and update the icons.
Please guide how to achieve the functionality.