Jeff Hobbs | 11 Jun 23:55

Re: [Tcl-bugs] tk_getOpenFile segmentation fault on Mac OS X 10.5

Hi Erin,

On 11/06/2009 3:03 AM, Erin McKay wrote:
> I have encountered a semi-reproducible bug in tk_getOpenFile (OS X 10.5 native
> implementation). The one-line program below generates a segmentation fault
> (after several seconds) if a file is selected in the dialog. If the dialog is
> canceled, it does not crash.
	...
> 	tk_getOpenFile -message "Select a File"
	...

I'm redirecting this to tcl-mac as it is mac-related, though really 
filing a bug at http://tcl.sourceforge.net (under Tk Toolkit) is more 
appropriate.

I can confirm your error with the 8.4.7 that ships with OS X, however 
this has been fixed in the Tcl/Tk core (8.4.7 is fairly old).  You can 
newer versions of Tcl/Tk for OS X at http://www.activestate.com/Tcl.

Regards,

Jeff

------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects
(Continue reading)

Andy Colebourne | 10 Jun 20:57

Embedded Tcl/Tk compiled under 10.5 runs on 10.5 but not on 10.4

The program runs fine on 10.5 but not under 10.4.

This is the error on 10.4:

Can't find a usable init.tcl in the following directories:
     /Library/Frameworks/Tcl.framework/Versions/8.5/Resources/Scripts
./lib/tcl8.5 ./lib/tcl8.5 ./library ./library ./tcl8.5.7/library
./tcl8.5.7/library

The framework paths are set into the binary with 'install_name_tool' and 
'otool -l' shows the correct paths under both 10.4 and 10.5.

The same program under 10.5 runs fine - it's as if under 10.4, the 
tcl/tk-framework paths in the binary are being ignored - but they are there.

Any ideas why this is happening?

Andy

[ full program: inivis.com/ac3d/download/release6/ac3dmac6528.tgz  ~8 meg]
[using tcl/tk8.5.7 embedded build on system 10.5.]

------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects
Uwe Kirschner | 10 Jun 12:12

Compositing in Cocoa tk

Hello,
I was trying to obtain some compostiting effects with the new Cocoa tk  
but I could not get it to work.

Is compositing currently supported?

A long time ago I had a look at the MacOSX specifics of tk and I  
noticed that a big effort was necessary to emulate subwindow  
functionality.

With tk Cocoa, is a tk widget now basically a Cocoa view within the  
view hierarchy?

If not, is that the direction tk Cocoa will evolve?

kind regards,
Uwe

------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects
Adam Ginsburg | 23 May 22:56
Favicon

Error compiling tk 8.5.7 on Mac OS X 10.5

Hi folks,
   I'm trying to compile tcl/tk on my mac.  tcl compiled and installed
with no problems.  tk fails with the following error:

/Users/adam/Downloads/tk8.5.7/unix/../generic/tk.h:23:3: error: #error
Tk 8.5 must be compiled with tcl.h from Tcl 8.5

I'm trying to compile in the macosx directory using:
./configure --enable-framework --disable-xft
make

Google pointed me to this post:
http://coding.derkeiler.com/Archive/Tcl/comp.lang.tcl/2008-12/msg00519.html
and in turn this wiki article:
http://wiki.tcl.tk/12987

but I had no luck trying the following:
./configure --enable-framework --disable-xft
--with-tcl=/Users/adam/Downloads/tcl8.5.7/macosx
make

and variations upon:
ln -fs /Users/adam/Downloads/tcl8.5.7/macosx/buildtcltk/
/Users/adam/Downloads/tk8.5.7/macosx/buildtcltk

So, can anyone tell me what I'm missing?

Thanks,
Adam

(Continue reading)

Steve Ball | 25 May 22:52

Embedded Frameworks

Hi All,

I'm developing an application for the Mac that uses an extension  
(TclXML, of course) and am trying to set it up with frameworks so that  
it is self-contained; ie. installation is simply drag-n-drop. My  
framework compiles, links and runs against the full installation of  
Tcl/Tk (Aqua) just fine (tested using version 8.5.6). However, when I  
try and run against the embedded version it crashes in  
Tcl_GetThreadData(). I've tried the pre-built BI binaries, as well as  
building from source and get the same result. Do I have to compile/ 
link a dylib differently in order to get it to run in an embedded app?

On a related topic, I notice in the Tcl docs that loading a Mach-O  
bundle is better than a dylib. How does one build a Mach-O linrary and  
include it in a framework? There's very little documentation in the  
Apple Xcode doc library.

TIA,
Steve Ball

------------------------------------------------------------------------------
Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT 
is a gathering of tech-side developers & brand creativity professionals. Meet
the minds behind Google Creative Lab, Visual Complexity, Processing, & 
iPhoneDevCamp as they present alongside digital heavyweights like Barbarian 
Group, R/GA, & Big Spaceship. http://p.sf.net/sfu/creativitycat-com 
Kristoffer Lawson | 19 May 15:32

Frustrating error with Tk on OS X

I'm running the following application with a server component built in  
Tk on OS X:

http://www.poke-eye.com/

It is using the system's own Tk with just a WiSH shell embedded in  
the .app package. However, some people are reporting the following  
error on the console:

"TKMacOSXDoHLEvent failed : cppe 1 ,kHighlevelEvent 616567674 0000  
tvea,-1708"

I've seen various posts about this online, but no obvious resolution.  
The frustrating thing is that it doesn't seem to happen for everyone,  
and the application itself starts and displays the GUI (at least in  
some cases). I am using the OS X default version of Tclapplescript,  
which may or may not be relevant here.

Any help would be much appreciated as this is a sticker for several  
users now!

--

-- 
Kristoffer Lawson, Co-Founder, Scred // http://www.scred.com/

------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables 
unlimited royalty-free distribution of the report engine 
for externally facing server and web deployment. 
http://p.sf.net/sfu/businessobjects
(Continue reading)

Kevin Walzer | 18 May 05:58
Favicon

Tk-Cocoa--menu questions

Hi Daniel,

Since Tk-Cocoa is now public, I'm asking this question on the Tcl-Mac 
public list so we can start documenting any adjustments that need to be 
made.

I'm starting to port one of my old applications to use Tk-Cocoa (I'm 
using the 8.5.7 Tk-Cocoa port from the Github site) and I'm noticing 
some unexpected menu behavior. My old "apple" menu code no longer sets 
the application menu: the hard-coded Wish menu still controls the app 
menu even in a standalone embedded build of Wish.  For instance:

   menu .mb
     . configure -menu .mb

     menu .mb.apple -tearoff 0
     .mb.apple add command -label "About NameFind" -command 
tk::mac::standardAboutPanel
     .mb.apple add separator
     .mb add cascade -label "Apple" -menu .mb.apple

This code creates a menu item called "Apple" that sits next to the 
application menu. Moreoever, the application menu (which takes the name 
of the app bundle, "NameFind") has the hard-coded "about Tcl/Tk" label.

On a related note, it appears that the .help menu item hard-codes in an 
entry called "NameFind Help," even though I already have my own 
"NameFind Help" entry also set up. The result is two separate lines that 
say "NameFind Help."  My entry runs my command as expected, but the 
hard-coded one brings up a dialog that says "help isn't available for 
(Continue reading)

Daniel A. Steffen | 17 May 10:42
Gravatar

Merging TkAqua Cocoa port into Tk HEAD

Hi All,

as you may know, I have been working on a port of TkAqua to the Cocoa
API for some time, with the goal to get TkAqua to run on 64bit, and to
move away from Mac OS X Carbon API that has been deprecated.

The Cocoa port has now been feature complete for about a month and I
believe is of equal or better quality than the existing TkAqua
implementation, it has been built, tested and is already being used
successfully by various parties, and IMO is now ready to be merged
into the Tk mainline.

The port is available as patches against HEAD (large!)
	http://www.categorifiedcoder.info/tcltk/patches/tk-de-carbon.diff.bz2
	http://www.categorifiedcoder.info/tcltk/patches/tcl-de-carbon.diff.bz2
or from github with full history:
	http://github.com/das/tcltk/commits/de-carbon

The patch to Tcl only touches the macosx README and the Xcode
projects, related generally applicable changes to Tcl (in particular
the revised macosx notifier) have already gone in a few weeks ago for
8.5.7.

The principal new constraint of the TkAqua Cocoa port is that it
requires Mac OS X 10.5 or later (TkAqua currently requires Mac OS X
10.3).

After discussion with Jeff and other TkAqua maintainers and
distributors, we have decided that the Tk 8.6 release is a reasonable
moment to drop support for pre-10.5 OS X, as users who still need to
(Continue reading)

Kevan Hashemi | 5 May 20:31
Favicon

Menu Foreground

Dear TCL-MAC,

The following wish script gives me a red menu entry (Hello entry in Test 
menu) on Windows and Linux, but not on MacOS running TclTk 8.5.1. Why is 
that?

menu .a
. config -menu .a
menu .a.b
.a add cascade -menu .a.b -label "Test"
.a.b add command -label "Hello" -command "puts Hello" -foreground "red"

Yours, Kevan

--

-- 
Kevan Hashemi, Electrical Engineer
Physics Department, Brandeis University
http://alignment.hep.brandeis.edu/

------------------------------------------------------------------------------
The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
production scanning environment may not be a perfect world - but thanks to
Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700
Series Scanner you'll get full speed at 300 dpi even with all image 
processing features enabled. http://p.sf.net/sfu/kodak-com

using the Help->Search thingy in Mac OS X 10.5


Hey all,

So in the Tcl/Tk app that I work on, Pd aka Pure Data, there is that  
big blue Search thing in the Help menu. I was wondering if there is  
anyway to use that in Tcl/Tk.  I couldn't find anything in my searches.

.hc

----------------------------------------------------------------------------

I spent 33 years and four months in active military service and during  
that period I spent most of my time as a high class muscle man for Big  
Business, for Wall Street and the bankers.      - General Smedley Butler

------------------------------------------------------------------------------
Register Now & Save for Velocity, the Web Performance & Operations 
Conference from O'Reilly Media. Velocity features a full day of 
expert-led, hands-on workshops and two days of sessions from industry 
leaders in dedicated Performance & Operations tracks. Use code vel09scf 
and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf
Cameron Laird | 27 Apr 23:22

Request for teamwork

I'd love help filling out <URL: http://wiki.tcl.tk/23262 >.

------------------------------------------------------------------------------
Register Now & Save for Velocity, the Web Performance & Operations 
Conference from O'Reilly Media. Velocity features a full day of 
expert-led, hands-on workshops and two days of sessions from industry 
leaders in dedicated Performance & Operations tracks. Use code vel09scf 
and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf

Gmane