OBJECTIVE C - Getting notified when the network connection changes in a Cocoa / Obj-C application
Translations
Englishالعربية
български
català
中文
čeština
dansk
Nederlands
eesti
suomi
français
Deutsch
Ελληνικά
עברית
हिंदी
magyar
Bahasa Indonesia
italiano
日本語
한국어
latviešu
lietuvių
norsk
polski
Português
română
русский
slovenčina
slovenski
español
svenska
ไทย
Türkçe
українська
Tiếng Việt
Is there any way to be notified / have your Cocoa application listen for changes in the network connection (disconnect, connect, etc.)? How does something like HardwareGrowler do it?
This question and answers originated from www.stackoverflow.com
Question by Chetan (10/27/2010 2:23:22 AM)
Answer |
After looking at the source code for HardwareGrowler (found under /Extras in the source code for Growl, I figure that the easiest way would be to use the NetworkNotifier.m class and change all calls to AppDelegate functions to whatever callbacks you want executed when the network connection changes (and give them credit for their code!).
Answer by Chetan
Find More Answers
Related Topics objective-c cocoa networking events listener