Application icon

i am using Xcode to compile my c++ programs. i wanted to know when i am in my program and i want to do a process how can i change the icon that is displayed on the dock.(ex.connecting to server it will output a different icon to the dock).
Topic archived. No new replies allowed.