hi cg soft.
welcome to our little, quiet sea-side developers community. (where people are nice and the pharmacies are open late)
i can't understand whether the problem you're describing is in regards to a custom made window (pop up), a palette plug-in, or the ECW.
this is a long thread that deals with a lot of different issues, but also goes into details on creating os level windows:
at the end if it you'll find this very useful video, courtesy of gutsblow:
he shows how to create windows using cocoa.
if you're not dealing with an os level window then... what exactly is the problem?
I had this same problem. Bruce Bullis provided an answer.
Then use mainWnd as your parent window for your dialog and it will be in front of the main After Effects window.
It still might end up benind any open Options windows, but if you make your dialog big enough, it will peek out somewhere. Then the user can click on it to bring it to the front.
I wish there was an API for the handle for the Options dialog window.