I have a problem in getting focus to a window in my Objective C Carbon application. When I click outside the window, then the window is out of focus. Then, when I click on a checkbox inside the window, the checkbox get selected, but the main window remains out of focus. I have tried using ActivateWindow() and other functions but none of them are working. What should I use to bring my window to the front?
Got it to work using SetFrontProcess(processSerialNumber)