Hey folks,
I'm implementing a cross-platform library, for Mac I'm using Carbon and it must be carbon, because the building process is automatized, no xcode or something.

I successfuly created a window (using view... extremely simple task -> **** complicated solution ), painted, picked up events, but ran into a trouble - the window is always in background. It cannot get focus, even if I call SelectWindow and other functions. Is there something the window must have to be in the foreground?