|
View:
New views
8 Messages
—
Rating Filter:
Alert me
|
|
|
menu issue with Tk 8.5.7/CocoaSo I recently downloaded the Tcl/Tk 8.5.7/Cocoa version from the github site: http://cloud.github.com/downloads/das/tcltk/tk8.5.7-decarbon.tar.gz And built it and tried it out with the app I am working on, Pure Data. I've been using it a lot with Tcl/Tk 8.5.6 and 8.4.18 on Mac OS X 10.5.8/Intel and the menus work fine there. With those two, the menus work fine, with tk8.5.7-decarbon.tar.gz, it starts up with an 'Apple' menu after the the menus seem to multiply oddly. It also seems to refuse to load the Monaco font in 8.5.7-decarbon, which works fine in 8.4.18 and 8.5.6. The code is already structured so that the . configure -menu .menubar is last after the menubar is all created, but I get the 'Apple' menu after the 'Help' menu, like Kevin mentions in this thread: http://www.nabble.com/Tk-Cocoa--menu-questions-td23590691.html The menu code in question is in a proc called create_menubar in this file: http://pure-data.svn.sourceforge.net/viewvc/pure-data/branches/pd-gui-rewrite/0.43/src/pd_menus.tcl?view=log You can download a working version of the app here, it has the frameworks embedded in it: http://autobuild.puredata.info/pdlab/Pd-0.43.0-devel-20091019.app.zip .hc ---------------------------------------------------------------------------- Information wants to be free. -Stewart Brand ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Tcl-mac mailing list tcl-mac@... https://lists.sourceforge.net/lists/listinfo/tcl-mac |
|
|
Re: menu issue with Tk 8.5.7/CocoaHi Hans-Christoph,
On 10/19/09 5:35 PM, Hans-Christoph Steiner wrote: > > > And built it and tried it out with the app I am working on, Pure Data. > I've been using it a lot with Tcl/Tk 8.5.6 and 8.4.18 on Mac OS X > 10.5.8/Intel and the menus work fine there. With those two, the menus > work fine, with tk8.5.7-decarbon.tar.gz, it starts up with an 'Apple' > menu after the the menus seem to multiply oddly. It also seems to refuse > to load the Monaco font in 8.5.7-decarbon, which works fine in 8.4.18 > and 8.5.6. > Unless you need to build this against the legacy version of Tk-Carbon, I'd avoid the Apple menu altogether. It's very messy to set up with Tk-Cocoa. I'm now using the following commands in my apps: proc tkAboutDialog {} { ##about dialog code goes here } This will re-define the "about dialog" to use your own dialog, and will put it in the right place in the application menu. proc ::tk::mac::ShowPreferences {} { ##prefs dialog code goes here } This will set up the preferences dialog in the application menu. proc tk::mac::ShowHelp {} { ##help dialog/window goes here } This will map your help dialog to the default "help" menu entry in the help menu. That entry brings up a "Help isn't available" dialog. Additionally, I've observed similar bugs with the menu adding redundant entries as windows are closed. I've filed a bug about it here: http://sourceforge.net/tracker/?func=detail&atid=112997&aid=2876709&group_id=12997 Daniel Steffen is taking a break from maintainer duties at the moment, until the end of November I think, and so I doubt anything will happen with this bug in the near term. I will try to make time to work up a patch for it, but that might take a little while. Hope this helps, Kevin -- Kevin Walzer Code by Kevin http://www.codebykevin.com ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Tcl-mac mailing list tcl-mac@... https://lists.sourceforge.net/lists/listinfo/tcl-mac |
|
|
Re: menu issue with Tk 8.5.7/CocoaOn Mon, Oct 19, 2009 at 15:12, Kevin Walzer <kw@...> wrote:
> Daniel Steffen is taking a break from maintainer duties at the moment, > until the end of November I think, yes, still on break (until further notice), just a quick note, if you can, please check that you still see this bug in SnowLeopard, ISTR encountering an AppKit menu bug similar to this in Leopard that was fixed in SnowLeopard... (if this is indeed that bug, we may not be able to do much to fix it in Tk for Leopard unfortunately) Cheers, Daniel ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Tcl-mac mailing list tcl-mac@... https://lists.sourceforge.net/lists/listinfo/tcl-mac |
|
|
Re: menu issue with Tk 8.5.7/CocoaOn 10/19/09 6:20 PM, Daniel A. Steffen wrote:
> > yes, still on break (until further notice), just a quick note, if you > can, please check that you still see this bug in SnowLeopard, ISTR > encountering an AppKit menu bug similar to this in Leopard that was > fixed in SnowLeopard... (if this is indeed that bug, we may not be > able to do much to fix it in Tk for Leopard unfortunately) > With Daniel's suggestion in mind, can someone who's running Snow Leopard try these steps: 1. Run the Tk widget demo in Wish 8.5 64-bit (Tk-Cocoa-based). 2. Choose the "menu demonstration" demo. 3. Select the "see code" button from the menu demonstration. 4. The menu has these entries: File, Basic, Cascades, Icons, More, Colors. 5. Click the "see code" button in the demo window. 6. The code window pops up; select the "rerun demo" window. What I see in my test of Tk-Cocoa on Leopard is this: 7. Instead of having the menu re-created in place, the menu now appends these entires: Basic, Icons, Colors. The entire menu looks like this: File, Basic, Cascades, Icons, More, Colors, Basic, Icons, Colors. If you don't see this on Snow Leopard, I'll close the bug I filed as Leopard-specific/won'tfix. --Kevin -- Kevin Walzer Code by Kevin http://www.codebykevin.com ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Tcl-mac mailing list tcl-mac@... https://lists.sourceforge.net/lists/listinfo/tcl-mac |
|
|
Re: menu issue with Tk 8.5.7/Cocoa
Kevin,
Following your steps on Snow Leopard, at step 7 I see that the menu has these entries: File, Basic, Cascades, Icons, More, Colors. Kevin Walzer wrote: On 10/19/09 6:20 PM, Daniel A. Steffen wrote: -- +------------------------------------------------------------------------+ | Gerald W. Lester, President, KNG Consulting LLC | | Cell: +1.504.236.6657 | Email: Gerald.Lester@... | +------------------------------------------------------------------------+ [Gerald_Lester.vcf] begin:vcard fn:Gerald Lester n:Lester;Gerald org:KnG Consulting adr:;;4520 Young Street;Metairie;LA;70006;USA email;internet:Gerald.Lester@... title:President tel;work:+1-504-236-6657 url:http://www.KnG-Consulting.net version:2.1 end:vcard ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Tcl-mac mailing list tcl-mac@... https://lists.sourceforge.net/lists/listinfo/tcl-mac |
|
|
Re: menu issue with Tk 8.5.7/CocoaGerald,
On 10/20/09 9:52 AM, Gerald W. Lester wrote: > Following your steps on Snow Leopard, at step 7 I see that the menu has > these entries: File, Basic, Cascades, Icons, More, Colors. > > Thanks, looks like this is a Leopard-only bug. I'll close the bug at SF. --Kevin -- Kevin Walzer Code by Kevin http://www.codebykevin.com ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Tcl-mac mailing list tcl-mac@... https://lists.sourceforge.net/lists/listinfo/tcl-mac |
|
|
Re: menu issue with Tk 8.5.7/CocoaYeah, my testers confirmed my builds worked on 10.6 but the bug appears on 10.5. That's a bummer. Anyone know of a workaround? .hc On Oct 20, 2009, at 10:38 AM, Kevin Walzer wrote: > Gerald, > > On 10/20/09 9:52 AM, Gerald W. Lester wrote: > >> Following your steps on Snow Leopard, at step 7 I see that the menu >> has >> these entries: File, Basic, Cascades, Icons, More, Colors. >> >> > > Thanks, looks like this is a Leopard-only bug. I'll close the bug at > SF. > > --Kevin > > -- > Kevin Walzer > Code by Kevin > http://www.codebykevin.com > > ------------------------------------------------------------------------------ > Come build with us! The BlackBerry(R) Developer Conference in SF, CA > is the only developer event you need to attend this year. Jumpstart > your > developing skills, take BlackBerry mobile applications to market and > stay > ahead of the curve. Join us from November 9 - 12, 2009. Register now! > http://p.sf.net/sfu/devconference > _______________________________________________ > Tcl-mac mailing list > tcl-mac@... > https://lists.sourceforge.net/lists/listinfo/tcl-mac ---------------------------------------------------------------------------- I hate it when they say, "He gave his life for his country." Nobody gives their life for anything. We steal the lives of these kids. - Admiral Gene LeRocque ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Tcl-mac mailing list tcl-mac@... https://lists.sourceforge.net/lists/listinfo/tcl-mac |
|
|
Re: menu issue with Tk 8.5.7/CocoaOn Oct 19, 2009, at 6:20 PM, Daniel A. Steffen wrote: > On Mon, Oct 19, 2009 at 15:12, Kevin Walzer <kw@...> > wrote: >> Daniel Steffen is taking a break from maintainer duties at the >> moment, >> until the end of November I think, > > yes, still on break (until further notice), just a quick note, if you > can, please check that you still see this bug in SnowLeopard, ISTR > encountering an AppKit menu bug similar to this in Leopard that was > fixed in SnowLeopard... (if this is indeed that bug, we may not be > able to do much to fix it in Tk for Leopard unfortunately) Two people tested it, and they said they didn't get the multiplying menus on 10.6/Snow Leopard, but they did have the extra Apple menu. My . configure -menu .menubar already happens as the last step after the whole menubar is built. .hc ---------------------------------------------------------------------------- I hate it when they say, "He gave his life for his country." Nobody gives their life for anything. We steal the lives of these kids. - Admiral Gene LeRocque ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Tcl-mac mailing list tcl-mac@... https://lists.sourceforge.net/lists/listinfo/tcl-mac |
| Free embeddable forum powered by Nabble | Forum Help |