From: Ryan C. <sc...@ho...> - 2001-08-10 15:50:34
|
Hmmm...I'm not finding a command 'post' that I could disable...I am using a menu attached to a menubutton. Maybe I am missing something. Right now these are being built in the toplevel itself. Is there a way to instead build these menus in the Mac menu bar? Also, what do I need to do to get Mac to take control of the location of my toplevel...I can't move it. Ryan ----- Original Message ----- From: "Robert Karen" <ro...@na...> To: "Ryan Casey" <sc...@ho...> Sent: Friday, August 10, 2001 11:12 AM Subject: Re: [MACTCL] Drag & Drop Tclets / MacOS X > I'm not a c programmer (on mac) but for what it's worth, I had > lots of problem with the post menu command in tk on OS8, until I > disabled it. One involved an error message that said something > like 'window .xyz.menu already posted...' It may not be an OS9 > porting issue. > > RK > > Ryan Casey wrote: > > > > My problems were the libraries. Apparently there was an entry made to the > > default search path in OS9 when Tcl/Tk was installed, that caused the > > libraries to be found by the DnD Tclet (that's my guess anyway). Once I > > moved those shared libraries to the same directory as my executable, > > everything comes up. I still have one problem occurring though. > > > > Issue: Menu post > > I keep getting a 'Cannot call post menu while already posting menu.' > > > > I get this with one command in my client-server app that is run from a > > menu item. I also can reproduce it in standalone if I click the menus fast. > > Any ideas what I need to be sure is done before the post is tried? i.e. > > What might I need to destroy? > > > > Thanks for your help, Rob and Jim. This port has gone really well because > > of you guys. > > > > Ryan > > ----- Original Message ----- > > From: "Jim Ingham" <ji...@ap...> > > To: "Ryan Casey" <sc...@ho...> > > Cc: <tc...@li...> > > Sent: Thursday, August 09, 2001 5:03 PM > > Subject: Re: [MACTCL] Drag & Drop Tclets / MacOS X > > > > > Ryan, > > > > > > The D&D Tclets are actually pretty simple little beasts. They are just > > > a copy of the Wish shell app with the script put into a TEXT resource > > > with the appropriate name (tclshrc). So there is not much that can go > > > wrong here... > > > > > > Did the Tclet try to launch as a X app, or did it run in classic? Also, > > > make sure it didn't manage to lose its TEXT resources. Have a look at > > > it in ResEdit to make sure it is still there... > > > > > > Maybe it's not finding the Tcl & Tk shared libraries? But if Wish can > > > find them, your Tclet should be able to as well. > > > > > > Jim > > > > > > On Thursday, August 9, 2001, at 01:54 PM, Ryan Casey wrote: > > > > > > > Should tcl executables created by 'Drag & Drop Tclets' on OS9 work under > > > > Classic on OSX? > > > > > > > > I have the following situation: > > > > I made a DnD Tclet from a script using the above program. > > > > I tried to start this under OSX, it hangs the box. Sometimes, it > > > > loads > > > > the icon in the tray, then gets rid of it and recovers. > > > > > > > > I tried loading Wish, then sourcing the script. > > > > This worked as expected. Wish comes up in Classic mode, and I start > > > > my > > > > script. > > > > > > > > The DnD Tclet is reported under Info as being a Classic App. > > > > > > > > Any ideas? > > > > > > > > Thanks! > > > > > > > > Ryan > > > > > > > > _______________________________________________ > > > > Tcl-mac mailing list > > > > Tc...@li... > > > > http://lists.sourceforge.net/lists/listinfo/tcl-mac > > > > > > _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_- > > > Jim Ingham > > > ji...@ap... > > > Developer Tools - gdb > > > > > > > > > > _______________________________________________ > > Tcl-mac mailing list > > Tc...@li... > > http://lists.sourceforge.net/lists/listinfo/tcl-mac > |