From: Jim I. <ji...@ap...> - 2002-01-10 01:47:50
|
On 1/9/02 9:07 AM, "Ashley Ward" <ash...@nt...> wrote: >> on 3/1/02 12:32 AM, Jim Ingham at ji...@ap... wrote: >>> On 1/2/02 12:35 PM, "Ashley Ward" <as...@dc...> wrote: >>>> on 31/12/01 8:14 PM, Jim Ingham at ji...@ap... wrote: >>>>> At 7:24 PM +0000 12/21/01, Ashley Ward wrote: >>>>> [...] >>>>> started it from. When I click in the app's window to bring it to the >>>>> front >>>>> in an attempt to use it, I get this message from tkMacOSXMouseEvent.c:241 >>>>> (the function TkMacOSXProcessMouseEvent) on stderr: >>>>> >>>>> SetFrontProcess failed,-600 >>>>> [...] >>>>> Any ideas why SetFrontProcess would fail in this way? >>>>> >>>> I need to chase down the SetFrontProcess thing. This call usually >>>> succeeds, >>>> but there is some glitch that causes it to occasionally fail. It doesn't >>>> seem to be harmful, however, so I haven't looked into it further. >>> >>> It always fails with my app. And as it fails, I can't give the app focus >>> and so I can't interact with it. A fairly major problem :( >> >> I will see if I can think of some good diagnostics for you to insert... > > I've now managed to compile the Tcl and Tk libraries -- thanks for the > explanations about the move of MacOSXOpenBundleResources, Jim -- and I'm > linking my application with them. (By the way: can anyone tell me the > equivalent of 'ldd' on Mac OS X so I can check this?). > otool -L Is what you want, I think. > I still get the SetFrontProcess error, every time I try to give my app > focus. Are you building your app as an app package (I may have asked this before, I forget). There are problems with getting the WindowServer to recognize you if you are not wrapped in a proper App package. It is easy to get PB to do this for you. You don't even need to use PB to build your App. If you are already using a Makefile, then make one target that is a "Legacy Makefile Target" that builds your App, and an App target that builds the App package, and copies the binary into the correct place in the package. Jim > > Ash. > > PS I haven't updated my Tcl/Tk from CVS for a few days -- would that help? No, I haven't done anything since before Christmas. Jim -- ++=++=++=++=++=++=++=++=++=++=++=++=++=++=++=++=++=++=++= Jim Ingham ji...@ap... Developer Tools - gdb |