<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<id>tag:old.nabble.com,2006:forum-4022</id>
	<title>Nabble - tcl-mac</title>
	<updated>2009-12-20T13:51:47Z</updated>
	<link rel="self" type="application/atom+xml" href="http://old.nabble.com/tcl-mac-f4022.xml" />
	<link rel="alternate" type="text/html" href="http://old.nabble.com/tcl-mac-f4022.html" />
	<subtitle type="html">Mailing list archive for tcl-mac</subtitle>
	
<entry>
	<id>tag:old.nabble.com,2006:post-26867641</id>
	<title>Re: add window by clicking launcher</title>
	<published>2009-12-20T13:51:47Z</published>
	<updated>2009-12-20T13:51:47Z</updated>
	<author>
		<name>jguyer</name>
	</author>
	<content type="html">Quoting Jasper Taylor &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26867641&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jasper@...&lt;/a&gt;&amp;gt;:
&lt;br&gt;&lt;br&gt;&amp;gt; However the normal Mac app behaviour, as far as I can tell, is to open a
&lt;br&gt;&amp;gt; new window when the app launch action is done, if it is already running.
&lt;br&gt;&lt;br&gt;Yep, this is stipulated by the HIG.
&lt;br&gt;&lt;br&gt;&amp;gt; It seems the way to get this to happen is to use tclAE and install an
&lt;br&gt;&amp;gt; event handler, but so far I have not succeeded &amp;nbsp;in getting a procedure
&lt;br&gt;&amp;gt; called by registering it with tclAE::installEventHandler. Can anyone
&lt;br&gt;&amp;gt; give me a clue that might help?
&lt;br&gt;&lt;br&gt;You should be able to call
&lt;br&gt;&lt;br&gt;tclAE::installEventHandler aevt rapp myHandleReOpenApp
&lt;br&gt;&lt;br&gt;proc myHandleReOpenApp {theAppleEvent theReplyAE} {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;if &amp;lt;there are no windows&amp;gt; {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;make a new window&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;}
&lt;br&gt;}
&lt;br&gt;&lt;br&gt;This is what we do in Alpha, although it has a preference to prevent &amp;nbsp;
&lt;br&gt;it because, although mandated by the HIG, too many users found it &amp;nbsp;
&lt;br&gt;annoying. It depends on the app, though, how obtrusive this behavior is.
&lt;br&gt;&lt;br&gt;The myHandleReOpenApp handler can usually do double duty with your &amp;nbsp;
&lt;br&gt;oapp handler, if you have one.
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;This SF.Net email is sponsored by the Verizon Developer Community
&lt;br&gt;Take advantage of Verizon's best-in-class app development support
&lt;br&gt;A streamlined, 14 day to market process makes app distribution fast and easy
&lt;br&gt;Join now and get one step closer to millions of Verizon customers
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/verizon-dev2dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/verizon-dev2dev&lt;/a&gt;&amp;nbsp;
&lt;br&gt;_______________________________________________
&lt;br&gt;Tcl-mac mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26867641&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;tcl-mac@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/tcl-mac&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/tcl-mac&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/add-window-by-clicking-launcher-tp26847303p26867641.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26849451</id>
	<title>Re: add window by clicking launcher</title>
	<published>2009-12-18T12:40:06Z</published>
	<updated>2009-12-18T12:40:06Z</updated>
	<author>
		<name>Youness Alaoui-2</name>
	</author>
	<content type="html">&lt;br&gt;&lt;div&gt;Hi,&lt;br&gt;&lt;/div&gt;&lt;div&gt;Tk already supports telling you when your dock is being clicked.. just define a proc with :&lt;/div&gt;&lt;div&gt;proc ::tk::mac::ReopenApplication { } {&lt;/div&gt;&lt;div&gt;   # your dock was clicked! do something!&lt;/div&gt;
&lt;div&gt;}&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;Hope that helps.&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;KaKaRoTo&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div class=&quot;gmail_quote&quot;&gt;On Fri, Dec 18, 2009 at 12:48 PM, Jasper Taylor &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26849451&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jasper@...&lt;/a&gt;&amp;gt;&lt;/span&gt; wrote:&lt;br&gt;
&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;&quot;&gt;Hi Folks,&lt;br&gt;
Being unused to the Mac way of doing things, I often close the last&lt;br&gt;
window in my app by clicking its &amp;#39;close&amp;#39; decoration (red X button at the&lt;br&gt;
top left). This closes the window but does not quit the application.&lt;br&gt;
After a while I may try to launch it again by clicking the app icon. At&lt;br&gt;
this point, nothing happens, causing consternation until I remember that&lt;br&gt;
I am on the Mac and actually something has happened -- my app&amp;#39;s menu is&lt;br&gt;
now at the top of the screen. I can then open a new window from the menu.&lt;br&gt;
&lt;br&gt;
However the normal Mac app behaviour, as far as I can tell, is to open a&lt;br&gt;
new window when the app launch action is done, if it is already running.&lt;br&gt;
It seems the way to get this to happen is to use tclAE and install an&lt;br&gt;
event handler, but so far I have not succeeded  in getting a procedure&lt;br&gt;
called by registering it with tclAE::installEventHandler. Can anyone&lt;br&gt;
give me a clue that might help?&lt;br&gt;
Cheers&lt;br&gt;
    --Jasper&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
------------------------------------------------------------------------------&lt;br&gt;
This SF.Net email is sponsored by the Verizon Developer Community&lt;br&gt;
Take advantage of Verizon&amp;#39;s best-in-class app development support&lt;br&gt;
A streamlined, 14 day to market process makes app distribution fast and easy&lt;br&gt;
Join now and get one step closer to millions of Verizon customers&lt;br&gt;
&lt;a href=&quot;http://p.sf.net/sfu/verizon-dev2dev&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/verizon-dev2dev&lt;/a&gt;&lt;br&gt;
_______________________________________________&lt;br&gt;
Tcl-mac mailing list&lt;br&gt;
&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26849451&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;tcl-mac@...&lt;/a&gt;&lt;br&gt;
&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/tcl-mac&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/tcl-mac&lt;/a&gt;&lt;br&gt;
&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;
&lt;br /&gt;------------------------------------------------------------------------------
&lt;br&gt;This SF.Net email is sponsored by the Verizon Developer Community
&lt;br&gt;Take advantage of Verizon's best-in-class app development support
&lt;br&gt;A streamlined, 14 day to market process makes app distribution fast and easy
&lt;br&gt;Join now and get one step closer to millions of Verizon customers
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/verizon-dev2dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/verizon-dev2dev&lt;/a&gt;&amp;nbsp;&lt;br /&gt;_______________________________________________
&lt;br&gt;Tcl-mac mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26849451&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;tcl-mac@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/tcl-mac&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/tcl-mac&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/add-window-by-clicking-launcher-tp26847303p26849451.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26847303</id>
	<title>add window by clicking launcher</title>
	<published>2009-12-18T09:48:47Z</published>
	<updated>2009-12-18T09:48:47Z</updated>
	<author>
		<name>Jasper Taylor</name>
	</author>
	<content type="html">Hi Folks,
&lt;br&gt;Being unused to the Mac way of doing things, I often close the last 
&lt;br&gt;window in my app by clicking its 'close' decoration (red X button at the 
&lt;br&gt;top left). This closes the window but does not quit the application. 
&lt;br&gt;After a while I may try to launch it again by clicking the app icon. At 
&lt;br&gt;this point, nothing happens, causing consternation until I remember that 
&lt;br&gt;I am on the Mac and actually something has happened -- my app's menu is 
&lt;br&gt;now at the top of the screen. I can then open a new window from the menu.
&lt;br&gt;&lt;br&gt;However the normal Mac app behaviour, as far as I can tell, is to open a 
&lt;br&gt;new window when the app launch action is done, if it is already running. 
&lt;br&gt;It seems the way to get this to happen is to use tclAE and install an 
&lt;br&gt;event handler, but so far I have not succeeded &amp;nbsp;in getting a procedure 
&lt;br&gt;called by registering it with tclAE::installEventHandler. Can anyone 
&lt;br&gt;give me a clue that might help?
&lt;br&gt;Cheers
&lt;br&gt;&amp;nbsp; &amp;nbsp; --Jasper
&lt;br&gt;&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;This SF.Net email is sponsored by the Verizon Developer Community
&lt;br&gt;Take advantage of Verizon's best-in-class app development support
&lt;br&gt;A streamlined, 14 day to market process makes app distribution fast and easy
&lt;br&gt;Join now and get one step closer to millions of Verizon customers
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/verizon-dev2dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/verizon-dev2dev&lt;/a&gt;&amp;nbsp;
&lt;br&gt;_______________________________________________
&lt;br&gt;Tcl-mac mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26847303&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;tcl-mac@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/tcl-mac&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/tcl-mac&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/add-window-by-clicking-launcher-tp26847303p26847303.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26845118</id>
	<title>Subview for Tkdnd is too small</title>
	<published>2009-12-18T07:30:07Z</published>
	<updated>2009-12-18T07:30:07Z</updated>
	<author>
		<name>Kevin Walzer-5</name>
	</author>
	<content type="html">Hi all,
&lt;br&gt;&lt;br&gt;I'm continuing to make progress with porting TkDND to the Mac--if you 
&lt;br&gt;look at &lt;a href=&quot;https://sourceforge.net/projects/tkdnd/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://sourceforge.net/projects/tkdnd/&lt;/a&gt;, you'll see several 
&lt;br&gt;recent commits. &amp;nbsp;Right now, with George Petasis' help, I've implemented 
&lt;br&gt;dragging text and files to a tk widget from the Finder. There's more 
&lt;br&gt;work to do on binding for specific events, but things are moving along 
&lt;br&gt;well.
&lt;br&gt;&lt;br&gt;I am running into an issue with a widget that has been registered as a 
&lt;br&gt;drop target. My basic design, as suggested by Daniel Steffen, is to add 
&lt;br&gt;a custom subview to an NS/Tk window to serve as the drop target. I can 
&lt;br&gt;do this, but for some reason the subview does not take up the entire 
&lt;br&gt;toplevel window (as was my idea). The code below, based on Daniel's 
&lt;br&gt;webkit view code sample, should draw the custom subview to the be same 
&lt;br&gt;size as the toplevel window. However, what I've found is that it draws a 
&lt;br&gt;200x200 view anchored to the lower left-hand-corner of the window.
&lt;br&gt;&lt;br&gt;Shouldn't the Tk_Width and Tk_Height calls return the width and height 
&lt;br&gt;of the Tk toplevel?
&lt;br&gt;&lt;br&gt;In any event, advice on the code below is appreciated. --Thanks, Kevin
&lt;br&gt;&lt;br&gt;&lt;br&gt;-----
&lt;br&gt;&lt;br&gt;&lt;br&gt;//get NSView from Tk window and add subview to serve as drop target
&lt;br&gt;&amp;nbsp; &amp;nbsp;DNDView *dropview = [[DNDView alloc] init];
&lt;br&gt;&amp;nbsp; &amp;nbsp;NSView *view = TkMacOSXGetRootControl(d);
&lt;br&gt;&amp;nbsp; &amp;nbsp;if ([dropview superview] != view) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;[view addSubview:dropview positioned:NSWindowBelow relativeTo:nil];
&lt;br&gt;&amp;nbsp; &amp;nbsp;}
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp;TkMacOSXWinBounds((TkWindow*)path, &amp;bounds);
&lt;br&gt;&amp;nbsp; &amp;nbsp;frame = NSMakeRect(bounds.left, bounds.top, Tk_Width(path),
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Tk_Height(path));
&lt;br&gt;&amp;nbsp; &amp;nbsp;frame.origin.y = [view bounds].size.height &amp;nbsp;-
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;(frame.origin.y + frame.size.height);
&lt;br&gt;&amp;nbsp; &amp;nbsp;if (!NSEqualRects(frame, [dropview frame])) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;[dropview setFrame:frame];
&lt;br&gt;&amp;nbsp; &amp;nbsp;}
&lt;br&gt;&amp;nbsp; &amp;nbsp;[dropview displayRectIgnoringOpacity:[dropview bounds]];
&lt;br&gt;&amp;nbsp; &amp;nbsp;[view unlockFocus];
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Kevin Walzer
&lt;br&gt;Code by Kevin
&lt;br&gt;&lt;a href=&quot;http://www.codebykevin.com&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.codebykevin.com&lt;/a&gt;&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;This SF.Net email is sponsored by the Verizon Developer Community
&lt;br&gt;Take advantage of Verizon's best-in-class app development support
&lt;br&gt;A streamlined, 14 day to market process makes app distribution fast and easy
&lt;br&gt;Join now and get one step closer to millions of Verizon customers
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/verizon-dev2dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/verizon-dev2dev&lt;/a&gt;&amp;nbsp;
&lt;br&gt;_______________________________________________
&lt;br&gt;Tcl-mac mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26845118&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;tcl-mac@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/tcl-mac&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/tcl-mac&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Subview-for-Tkdnd-is-too-small-tp26845118p26845118.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26771681</id>
	<title>Post popup menu if Tk-Cocoa window is not frontmost?</title>
	<published>2009-12-13T16:52:21Z</published>
	<updated>2009-12-13T16:52:21Z</updated>
	<author>
		<name>Kevin Walzer-5</name>
	</author>
	<content type="html">Hi all,
&lt;br&gt;&lt;br&gt;I'm working on integrating Youness Alaoui's very nice statusicon 
&lt;br&gt;extension into my own applications, and I'm running into a problem. 
&lt;br&gt;Basically, the way the statusicon extension works is by posting a 
&lt;br&gt;tk_popup menu when a mouse-click event occurs over the statusicon 
&lt;br&gt;(actually an NSStatusitem). This works fine with Tk-Carbon, and works 
&lt;br&gt;equally well whether the Tk application is frontmost or not. It's an 
&lt;br&gt;effective implementation of the NSStatusItem into Tk.
&lt;br&gt;&lt;br&gt;However, with Tk-Cocoa, things don't work as well if the application 
&lt;br&gt;isn't frontmost. If I click on the statusicon if Wish is not frontmost, 
&lt;br&gt;I get this error:
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;while executing
&lt;br&gt;&amp;quot;$menu post $x $y&amp;quot;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;(procedure &amp;quot;tk::PostOverPoint&amp;quot; line 31)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;invoked from within
&lt;br&gt;&amp;quot;tk::PostOverPoint $menu $x $y $entry&amp;quot;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;(procedure &amp;quot;tk_popup&amp;quot; line 7)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;invoked from within
&lt;br&gt;&amp;quot;tk_popup $iconmenu [winfo pointerx .] [winfo pointery .]&amp;quot;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;(procedure &amp;quot;statusicon_callback&amp;quot; line 6)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;invoked from within
&lt;br&gt;&amp;quot;statusicon_callback ACTION&amp;quot;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;(&amp;quot;eval&amp;quot; body line 1)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;invoked from within
&lt;br&gt;&amp;quot;eval statusicon_callback ACTION&amp;quot;
&lt;br&gt;&lt;br&gt;After doing some digging into the source code for both statusicon and 
&lt;br&gt;Tk-Cocoa (tkMacOSXMenu.c), it appears that the menu can't post if the Tk 
&lt;br&gt;window isn't frontmost. Here's the relevant code:
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; NSWindow *win = [NSApp keyWindow];
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;if (win) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; inPostMenu = 1;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; int oldMode = Tcl_SetServiceMode(TCL_SERVICE_NONE);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; NSView *view = [win contentView];
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; NSRect frame = NSMakeRect(x + 9, tkMacOSXZeroScreenHeight - y - 9, 1, 1);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; frame.origin = [view convertPoint:
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [win convertScreenToBase:frame.origin] fromView:nil];
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; NSMenu *menu = (NSMenu *) menuPtr-&amp;gt;platformData;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; NSPopUpButtonCell *popUpButtonCell = [[NSPopUpButtonCell alloc]
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; initTextCell:@&amp;quot;&amp;quot; pullsDown:NO];
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [popUpButtonCell setMenu:menu];
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [popUpButtonCell selectItem:nil];
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [popUpButtonCell performClickWithFrame:frame inView:view];
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [popUpButtonCell release];
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Tcl_SetServiceMode(oldMode);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; inPostMenu = 0;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return TCL_OK;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;} else {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return TCL_ERROR;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;}
&lt;br&gt;&lt;br&gt;Tk is looking for the frontmost window, i.e. the [NSApp keyWindow], and 
&lt;br&gt;if it can't find it, returns a TCL_ERROR with no message.
&lt;br&gt;&lt;br&gt;Is this a bug, or a design decision? It seems unfortunate that the popup 
&lt;br&gt;menu doesn't work as effectively in Tk-Cocoa as it does in Tk-Carbon, 
&lt;br&gt;and I have no idea whether this can be adjusted without breaking 
&lt;br&gt;something else.
&lt;br&gt;&lt;br&gt;In any event, this can certainly be worked around with some AppleScript 
&lt;br&gt;calls to make sure the application is frontmost, but it would be nice to 
&lt;br&gt;be able to post the popup menu even if the app is not frontmost--just as 
&lt;br&gt;it is possible with Tk-Carbon.
&lt;br&gt;&lt;br&gt;Advice is appreciated.
&lt;br&gt;&lt;br&gt;Thanks,
&lt;br&gt;Kevin
&lt;br&gt;&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Kevin Walzer
&lt;br&gt;Code by Kevin
&lt;br&gt;&lt;a href=&quot;http://www.codebykevin.com&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.codebykevin.com&lt;/a&gt;&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Return on Information:
&lt;br&gt;Google Enterprise Search pays you back
&lt;br&gt;Get the facts.
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/google-dev2dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/google-dev2dev&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Tcl-mac mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26771681&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;tcl-mac@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/tcl-mac&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/tcl-mac&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Post-popup-menu-if-Tk-Cocoa-window-is-not-frontmost--tp26771681p26771681.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26754889</id>
	<title>Re: ANN: Cocoa-based extensions for Tk-Cocoa</title>
	<published>2009-12-11T20:23:31Z</published>
	<updated>2009-12-11T20:23:31Z</updated>
	<author>
		<name>Kevin Walzer-5</name>
	</author>
	<content type="html">On 12/11/09 11:17 PM, Damon Courtney wrote:
&lt;br&gt;&amp;gt; Congratulations, Kevin, and thank you! &amp;nbsp;Some very useful packages, and
&lt;br&gt;&amp;gt; I'm very glad to see how far you've come with your Tk / Cocoa
&lt;br&gt;&amp;gt; programming. &amp;nbsp;Very exciting stuff. 0-]
&lt;br&gt;&lt;br&gt;Thanks, Damon.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I see you've also made great progress on TkDND. &amp;nbsp;Any chance you'll be
&lt;br&gt;&amp;gt; sharing that work soon? &amp;nbsp;If you share some work in progress, some of
&lt;br&gt;&amp;gt; the rest of us might be able to chip in. &amp;nbsp;I know you're probably
&lt;br&gt;&amp;gt; reluctant to do that because I'm the same way. &amp;nbsp;I have a hard time
&lt;br&gt;&amp;gt; letting go until I think things are perfect, but I've definitely found
&lt;br&gt;&amp;gt; over the years that that's not the best approach.
&lt;br&gt;&lt;br&gt;I'm working now with George Petasis on getting my stuff merged into 
&lt;br&gt;TkDND itself. He's doing more of the integration work at this point, 
&lt;br&gt;since he knows his own API better than me. :-)
&lt;br&gt;&lt;br&gt;There are some recent commits here:
&lt;br&gt;&lt;br&gt;&lt;a href=&quot;https://sourceforge.net/projects/tkdnd/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://sourceforge.net/projects/tkdnd/&lt;/a&gt;&lt;br&gt;&lt;br&gt;Not sure when it will be fully ready, but hopefully soon. I'll post some 
&lt;br&gt;news when it is.
&lt;br&gt;&lt;br&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Thanks again for all the hard work. &amp;nbsp;I know you do it for you first,
&lt;br&gt;&amp;gt; but let me personally thank you for contributing this work back to the
&lt;br&gt;&amp;gt; community. &amp;nbsp;The Tcl community may be a small one compared to some, but
&lt;br&gt;&amp;gt; we share a lot. &amp;nbsp;A rising tide lifts all boats, so to speak.
&lt;br&gt;&lt;br&gt;Thanks again!
&lt;br&gt;&lt;br&gt;Kevin
&lt;br&gt;&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Kevin Walzer
&lt;br&gt;Code by Kevin
&lt;br&gt;&lt;a href=&quot;http://www.codebykevin.com&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.codebykevin.com&lt;/a&gt;&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Return on Information:
&lt;br&gt;Google Enterprise Search pays you back
&lt;br&gt;Get the facts.
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/google-dev2dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/google-dev2dev&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Tcl-mac mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26754889&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;tcl-mac@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/tcl-mac&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/tcl-mac&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/ANN%3A-Cocoa-based-extensions-for-Tk-Cocoa-tp26754571p26754889.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26754866</id>
	<title>Re: ANN: Cocoa-based extensions for Tk-Cocoa</title>
	<published>2009-12-11T20:17:39Z</published>
	<updated>2009-12-11T20:17:39Z</updated>
	<author>
		<name>Damon Courtney</name>
	</author>
	<content type="html">Congratulations, Kevin, and thank you! &amp;nbsp;Some very useful packages, and &amp;nbsp;
&lt;br&gt;I'm very glad to see how far you've come with your Tk / Cocoa &amp;nbsp;
&lt;br&gt;programming. &amp;nbsp;Very exciting stuff. 0-]
&lt;br&gt;&lt;br&gt;I see you've also made great progress on TkDND. &amp;nbsp;Any chance you'll be &amp;nbsp;
&lt;br&gt;sharing that work soon? &amp;nbsp;If you share some work in progress, some of &amp;nbsp;
&lt;br&gt;the rest of us might be able to chip in. &amp;nbsp;I know you're probably &amp;nbsp;
&lt;br&gt;reluctant to do that because I'm the same way. &amp;nbsp;I have a hard time &amp;nbsp;
&lt;br&gt;letting go until I think things are perfect, but I've definitely found &amp;nbsp;
&lt;br&gt;over the years that that's not the best approach.
&lt;br&gt;&lt;br&gt;Oh, and I would think about a github account. &amp;nbsp;Wave of the future, my &amp;nbsp;
&lt;br&gt;friend. 0-]
&lt;br&gt;&lt;br&gt;Thanks again for all the hard work. &amp;nbsp;I know you do it for you first, &amp;nbsp;
&lt;br&gt;but let me personally thank you for contributing this work back to the &amp;nbsp;
&lt;br&gt;community. &amp;nbsp;The Tcl community may be a small one compared to some, but &amp;nbsp;
&lt;br&gt;we share a lot. &amp;nbsp;A rising tide lifts all boats, so to speak.
&lt;br&gt;&lt;br&gt;D
&lt;br&gt;&lt;br&gt;&lt;br&gt;On Dec 11, 2009, at 9:04 PM, Kevin Walzer wrote:
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; I'm pleased to announce the release of three Mac-platform-native
&lt;br&gt;&amp;gt; Tk-extensions that build on the Cocoa frameworks to integrate with the
&lt;br&gt;&amp;gt; new Cocoa-based version of Tk for the Mac.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Macsheet
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; This package implements Mac-native &amp;quot;sheet&amp;quot; windows for Tk. &amp;quot;Sheet&amp;quot;
&lt;br&gt;&amp;gt; windows are dialogs or toplevel windows that slide down from the top &amp;nbsp;
&lt;br&gt;&amp;gt; of
&lt;br&gt;&amp;gt; a Mac toplevel window, and then slide back up when they are dismissed.
&lt;br&gt;&amp;gt; Tk on the Mac has long supported the &amp;quot;sheet&amp;quot; effect for system &amp;nbsp;
&lt;br&gt;&amp;gt; dialogs,
&lt;br&gt;&amp;gt; such as tk_messageBox, when a &amp;quot;-parent&amp;quot; option is passed to the call.
&lt;br&gt;&amp;gt; The macsheet package adds the ability to create customized dialogs or
&lt;br&gt;&amp;gt; windows with a similar effect.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Tkdock
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; The tkdock package allows a Tcl/Tk application to manipulate the Dock
&lt;br&gt;&amp;gt; icon. The package allows an application to change its icon on the OS X
&lt;br&gt;&amp;gt; Dock while running; it also allows the application to set a badge &amp;nbsp;
&lt;br&gt;&amp;gt; label
&lt;br&gt;&amp;gt; to the Dock.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Tkmacicon
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; The tkmacicon package renders platform-native icons on OS X as Tk
&lt;br&gt;&amp;gt; images. The ::tkmacicon::retrieveicon command takes three arguments: a
&lt;br&gt;&amp;gt; file path or file extension, width, and height. If a file path is
&lt;br&gt;&amp;gt; specified, then the package will return the specific icon for that &amp;nbsp;
&lt;br&gt;&amp;gt; file
&lt;br&gt;&amp;gt; as defined by the Mac OS, in the width and height specified in the
&lt;br&gt;&amp;gt; arguments. If a file extension is specified, then the package will
&lt;br&gt;&amp;gt; return the specific icon for that file type as defined by the Mac &amp;nbsp;
&lt;br&gt;&amp;gt; OS, in
&lt;br&gt;&amp;gt; the width and height specified in the arguments. Specifying the file
&lt;br&gt;&amp;gt; extension rather than the actual file can yield faster performance for
&lt;br&gt;&amp;gt; large numbers of files.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; All three packages are available at
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://tk-components.sourceforge.net/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://tk-components.sourceforge.net/&lt;/a&gt;&amp;nbsp;and are licensed under Tcl's
&lt;br&gt;&amp;gt; BSD-style license. Both file releases and SVN downloads are available.
&lt;br&gt;&amp;gt; In addition to source code, the packages include demo scripts and &amp;nbsp;
&lt;br&gt;&amp;gt; man pages.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; These extensions require Tk-Cocoa to run; they are not compatible with
&lt;br&gt;&amp;gt; the older version of Tk based on the Mac's Carbon framework. Tk 8.6 &amp;nbsp;
&lt;br&gt;&amp;gt; for
&lt;br&gt;&amp;gt; the Mac is based on Cocoa, and a backport of Tk-Cocoa to 8.5 is
&lt;br&gt;&amp;gt; available at &lt;a href=&quot;http://github.com/das/tcltk/tree/de-carbon-8-5&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://github.com/das/tcltk/tree/de-carbon-8-5&lt;/a&gt;.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Enjoy,
&lt;br&gt;&amp;gt; Kevin Walzer
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; -- 
&lt;br&gt;&amp;gt; Kevin Walzer
&lt;br&gt;&amp;gt; Code by Kevin
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://www.codebykevin.com&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.codebykevin.com&lt;/a&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; ------------------------------------------------------------------------------
&lt;br&gt;&amp;gt; Return on Information:
&lt;br&gt;&amp;gt; Google Enterprise Search pays you back
&lt;br&gt;&amp;gt; Get the facts.
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://p.sf.net/sfu/google-dev2dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/google-dev2dev&lt;/a&gt;&lt;br&gt;&amp;gt; _______________________________________________
&lt;br&gt;&amp;gt; Tcl-mac mailing list
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26754866&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;tcl-mac@...&lt;/a&gt;
&lt;br&gt;&amp;gt; &lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/tcl-mac&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/tcl-mac&lt;/a&gt;&lt;/div&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Return on Information:
&lt;br&gt;Google Enterprise Search pays you back
&lt;br&gt;Get the facts.
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/google-dev2dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/google-dev2dev&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Tcl-mac mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26754866&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;tcl-mac@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/tcl-mac&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/tcl-mac&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/ANN%3A-Cocoa-based-extensions-for-Tk-Cocoa-tp26754571p26754866.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26754571</id>
	<title>ANN: Cocoa-based extensions for Tk-Cocoa</title>
	<published>2009-12-11T19:04:23Z</published>
	<updated>2009-12-11T19:04:23Z</updated>
	<author>
		<name>Kevin Walzer-5</name>
	</author>
	<content type="html">I'm pleased to announce the release of three Mac-platform-native 
&lt;br&gt;Tk-extensions that build on the Cocoa frameworks to integrate with the 
&lt;br&gt;new Cocoa-based version of Tk for the Mac.
&lt;br&gt;&lt;br&gt;Macsheet
&lt;br&gt;&lt;br&gt;This package implements Mac-native &amp;quot;sheet&amp;quot; windows for Tk. &amp;quot;Sheet&amp;quot; 
&lt;br&gt;windows are dialogs or toplevel windows that slide down from the top of 
&lt;br&gt;a Mac toplevel window, and then slide back up when they are dismissed. 
&lt;br&gt;Tk on the Mac has long supported the &amp;quot;sheet&amp;quot; effect for system dialogs, 
&lt;br&gt;such as tk_messageBox, when a &amp;quot;-parent&amp;quot; option is passed to the call. 
&lt;br&gt;The macsheet package adds the ability to create customized dialogs or 
&lt;br&gt;windows with a similar effect.
&lt;br&gt;&lt;br&gt;Tkdock
&lt;br&gt;&lt;br&gt;The tkdock package allows a Tcl/Tk application to manipulate the Dock 
&lt;br&gt;icon. The package allows an application to change its icon on the OS X 
&lt;br&gt;Dock while running; it also allows the application to set a badge label 
&lt;br&gt;to the Dock.
&lt;br&gt;&lt;br&gt;Tkmacicon
&lt;br&gt;&lt;br&gt;The tkmacicon package renders platform-native icons on OS X as Tk 
&lt;br&gt;images. The ::tkmacicon::retrieveicon command takes three arguments: a 
&lt;br&gt;file path or file extension, width, and height. If a file path is 
&lt;br&gt;specified, then the package will return the specific icon for that file 
&lt;br&gt;as defined by the Mac OS, in the width and height specified in the 
&lt;br&gt;arguments. If a file extension is specified, then the package will 
&lt;br&gt;return the specific icon for that file type as defined by the Mac OS, in 
&lt;br&gt;the width and height specified in the arguments. Specifying the file 
&lt;br&gt;extension rather than the actual file can yield faster performance for 
&lt;br&gt;large numbers of files.
&lt;br&gt;&lt;br&gt;All three packages are available at 
&lt;br&gt;&lt;a href=&quot;http://tk-components.sourceforge.net/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://tk-components.sourceforge.net/&lt;/a&gt;&amp;nbsp;and are licensed under Tcl's 
&lt;br&gt;BSD-style license. Both file releases and SVN downloads are available. 
&lt;br&gt;In addition to source code, the packages include demo scripts and man pages.
&lt;br&gt;&lt;br&gt;These extensions require Tk-Cocoa to run; they are not compatible with 
&lt;br&gt;the older version of Tk based on the Mac's Carbon framework. Tk 8.6 for 
&lt;br&gt;the Mac is based on Cocoa, and a backport of Tk-Cocoa to 8.5 is 
&lt;br&gt;available at &lt;a href=&quot;http://github.com/das/tcltk/tree/de-carbon-8-5&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://github.com/das/tcltk/tree/de-carbon-8-5&lt;/a&gt;.
&lt;br&gt;&lt;br&gt;Enjoy,
&lt;br&gt;Kevin Walzer
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Kevin Walzer
&lt;br&gt;Code by Kevin
&lt;br&gt;&lt;a href=&quot;http://www.codebykevin.com&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.codebykevin.com&lt;/a&gt;&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Return on Information:
&lt;br&gt;Google Enterprise Search pays you back
&lt;br&gt;Get the facts.
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/google-dev2dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/google-dev2dev&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Tcl-mac mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26754571&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;tcl-mac@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/tcl-mac&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/tcl-mac&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/ANN%3A-Cocoa-based-extensions-for-Tk-Cocoa-tp26754571p26754571.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26752239</id>
	<title>using an NSOpenGLView in a Tk canvas</title>
	<published>2009-12-11T14:14:44Z</published>
	<updated>2009-12-11T14:14:44Z</updated>
	<author>
		<name>François Bérard</name>
	</author>
	<content type="html">Hi all,
&lt;br&gt;&lt;br&gt;&amp;nbsp; I'm working on a Tk canvas extension that uses OpenGL for the rendering of textured polygons, etc... This is already implemented on Mac OS X (Carbon), X11 and Windows. It is available from there:
&lt;br&gt;&lt;br&gt;&lt;a href=&quot;http://gil.imag.fr/Doc/TclCanvas&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://gil.imag.fr/Doc/TclCanvas&lt;/a&gt;&lt;br&gt;&lt;br&gt;&amp;nbsp; I'm trying to have this running on Tk-Cocoa (Tk8.5.8 de-carbon). But I didn't succeed in having the simplest OpenGL rendering displayed in the canvas window. So I'm looking for help. I'm new to Objective-C / Cocoa.
&lt;br&gt;&lt;br&gt;&amp;nbsp; The following is the code that replaces the standard canvas drawing code in the &amp;quot;Display&amp;quot; function of tkCanvas.c (i.e. it replaces the lines from 
&lt;br&gt;canvasPtr-&amp;gt;drawableXOrigin = canvasPtr-&amp;gt;xOrigin;
&lt;br&gt;&amp;nbsp; to
&lt;br&gt;TkpClipDrawableToRect(Tk_Display(tkwin), pixmap, 0, 0, -1, -1);
&lt;br&gt;).
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; NSView*	contentView = TkMacOSXDrawableView ((MacDrawable*)(((TkWindow*)tkwin)-&amp;gt;privatePtr));
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (theView == (gilTcl_TOpenGLView*)NULL) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; NSRect &amp;nbsp; &amp;nbsp;frame;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; frame.origin.x &amp;nbsp; &amp;nbsp; &amp;nbsp;= Tk_X (tkwin);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; frame.origin.y &amp;nbsp; &amp;nbsp; &amp;nbsp;= Tk_Height (Tk_Parent (tkwin));
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; frame.size.width &amp;nbsp; &amp;nbsp;= Tk_Width &amp;nbsp;(tkwin);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; frame.size.height &amp;nbsp; = Tk_Height (tkwin);
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; theView = [[gilTcl_TOpenGLView alloc] initWithFrame: frame];
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [contentView addSubview:theView];
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [theView release];
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [theView drawRect: [theView bounds]];
&lt;br&gt;&lt;br&gt;where &amp;quot;theView&amp;quot; is a global initialized to NULL.
&lt;br&gt;&lt;br&gt;And here's the drawRect method:
&lt;br&gt;&lt;br&gt;- (void)drawRect:(NSRect)bounds
&lt;br&gt;{
&lt;br&gt;&amp;nbsp; (void)bounds;
&lt;br&gt;&lt;br&gt;&amp;nbsp; glClearColor (0, 1.0, 0, 0);
&lt;br&gt;&amp;nbsp; glClear (GL_COLOR_BUFFER_BIT);
&lt;br&gt;&amp;nbsp; glFlush ();
&lt;br&gt;&lt;br&gt;&amp;nbsp; [[self openGLContext] flushBuffer];
&lt;br&gt;}
&lt;br&gt;&lt;br&gt;This compiles fine, but there is nothing displayed. The drawing should fill the canvas with green pixels. I tried my gilTcl_TOpenGLView class on a basic AppKit example, it works.
&lt;br&gt;&lt;br&gt;&amp;nbsp; Thanks for any help.
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; François
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Return on Information:
&lt;br&gt;Google Enterprise Search pays you back
&lt;br&gt;Get the facts.
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/google-dev2dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/google-dev2dev&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Tcl-mac mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26752239&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;tcl-mac@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/tcl-mac&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/tcl-mac&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/using-an-NSOpenGLView-in-a-Tk-canvas-tp26752239p26752239.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26748438</id>
	<title>Re: Crash in .app</title>
	<published>2009-12-11T09:34:59Z</published>
	<updated>2009-12-11T09:34:59Z</updated>
	<author>
		<name>Daniel A. Steffen</name>
	</author>
	<content type="html">Hi Damon,
&lt;br&gt;&lt;br&gt;On Dec 11, 2009, at 9:06 AM, Damon Courtney wrote:
&lt;br&gt;&lt;br&gt;&amp;gt; In fact, if I run ./Installer.app/Contents/MacOS/installer from the &amp;nbsp;
&lt;br&gt;&amp;gt; command line, it works just fine. &amp;nbsp;If I then run &amp;quot;open Installer.app&amp;quot; &amp;nbsp;
&lt;br&gt;&amp;gt; I get a boom. 
&lt;br&gt;&lt;br&gt;that doesn't sound familiar, please provide a crash log.
&lt;br&gt;&lt;br&gt;Thanks
&lt;br&gt;&lt;br&gt;Daniel
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Return on Information:
&lt;br&gt;Google Enterprise Search pays you back
&lt;br&gt;Get the facts.
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/google-dev2dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/google-dev2dev&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Tcl-mac mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26748438&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;tcl-mac@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/tcl-mac&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/tcl-mac&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Crash-in-.app-tp26748010p26748438.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26748010</id>
	<title>Crash in .app</title>
	<published>2009-12-11T09:06:25Z</published>
	<updated>2009-12-11T09:06:25Z</updated>
	<author>
		<name>Damon Courtney</name>
	</author>
	<content type="html">I'm working on upgrading the Tcl/Tk version in InstallJammer 1.3, and &amp;nbsp;
&lt;br&gt;I've been mostly using the stable 8.5 branch as it gets updated. &amp;nbsp;I &amp;nbsp;
&lt;br&gt;recently upgraded my build to include the 8.6 CVS snapshot to get a &amp;nbsp;
&lt;br&gt;look at some of the new stuff, and I find myself getting a crash but &amp;nbsp;
&lt;br&gt;only when I run from a .app bundle.
&lt;br&gt;&lt;br&gt;In fact, if I run ./Installer.app/Contents/MacOS/installer from the &amp;nbsp;
&lt;br&gt;command line, it works just fine. &amp;nbsp;If I then run &amp;quot;open Installer.app&amp;quot; &amp;nbsp;
&lt;br&gt;I get a boom. &amp;nbsp;I realize that my builds are sort of specialized in &amp;nbsp;
&lt;br&gt;that they are self-contained binaries, but I was just wondering if &amp;nbsp;
&lt;br&gt;anyone else had noticed any sort of similar behavior.
&lt;br&gt;&lt;br&gt;When I downgrade back to 8.5.8, I get no crash. &amp;nbsp;I can try the 8.6 &amp;nbsp;
&lt;br&gt;beta 1 if that would help narrow things down a bit. &amp;nbsp;Oh, also, I am &amp;nbsp;
&lt;br&gt;NOT using the Cocoa build. &amp;nbsp;I'm still doing --enable-aqua=carbon for &amp;nbsp;
&lt;br&gt;now. &amp;nbsp;I plan to use the Cocoa build in the future alongside a carbon &amp;nbsp;
&lt;br&gt;version for legacy support, but for now, I just wanted to see the &amp;nbsp;
&lt;br&gt;thing built as it has been.
&lt;br&gt;&lt;br&gt;Anyone?
&lt;br&gt;&lt;br&gt;D
&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Return on Information:
&lt;br&gt;Google Enterprise Search pays you back
&lt;br&gt;Get the facts.
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/google-dev2dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/google-dev2dev&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Tcl-mac mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26748010&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;tcl-mac@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/tcl-mac&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/tcl-mac&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Crash-in-.app-tp26748010p26748010.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26714557</id>
	<title>Re: Help tracing Tk execution</title>
	<published>2009-12-09T09:50:58Z</published>
	<updated>2009-12-09T09:50:58Z</updated>
	<author>
		<name>François Bérard</name>
	</author>
	<content type="html">Ok, found it, sorry for the noise.
&lt;br&gt;&lt;br&gt;I had the &amp;quot;Load symbols lazily&amp;quot; activated in &amp;lt;Preferences&amp;gt;&amp;lt;Debugging&amp;gt;. Bad.
&lt;br&gt;&lt;br&gt;On Dec 6, 2009, at 10:11 AM, François Bérard wrote:
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Hi,
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; I've been fighting quite a bit, but I can't manage to get XCode to break at my breakpoints when trying to trace Tk execution.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; I'm building Tcl/Tk8.5.8 (Tk-decarbon). I'm using the Wish.xcodeproj projects in the hope of using XCode nice debugger (XCode 3.2.1 on Mac OS X 10.6.2).
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; I build the default target (Tk) in the DebugNoFixZL configuration. I put some breakpoints in the source tree. I &amp;quot;Debug - breakpoints on&amp;quot;, Wish.app launches and loads the freshly build Tk framework (checked by setting DYLD_PRINT_LIBRARIES), but the program won't break at any of my breakpoints.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; In the &amp;quot;Breakpoint window&amp;quot;, my breakpoints remain in grey, as if XCode didn't recognize that the library has been loaded.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; What am I doing wrong?
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp;Thanks,
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp; François
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; ------------------------------------------------------------------------------
&lt;br&gt;&amp;gt; Join us December 9, 2009 for the Red Hat Virtual Experience,
&lt;br&gt;&amp;gt; a free event focused on virtualization and cloud computing. 
&lt;br&gt;&amp;gt; Attend in-depth sessions from your desk. Your couch. Anywhere.
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://p.sf.net/sfu/redhat-sfdev2dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/redhat-sfdev2dev&lt;/a&gt;&lt;br&gt;&amp;gt; _______________________________________________
&lt;br&gt;&amp;gt; Tcl-mac mailing list
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26714557&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;tcl-mac@...&lt;/a&gt;
&lt;br&gt;&amp;gt; &lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/tcl-mac&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/tcl-mac&lt;/a&gt;&lt;/div&gt;&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Return on Information:
&lt;br&gt;Google Enterprise Search pays you back
&lt;br&gt;Get the facts.
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/google-dev2dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/google-dev2dev&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Tcl-mac mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26714557&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;tcl-mac@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/tcl-mac&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/tcl-mac&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Help-tracing-Tk-execution-tp26665799p26714557.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26665799</id>
	<title>Help tracing Tk execution</title>
	<published>2009-12-06T07:11:36Z</published>
	<updated>2009-12-06T07:11:36Z</updated>
	<author>
		<name>François Bérard</name>
	</author>
	<content type="html">Hi,
&lt;br&gt;&lt;br&gt;&amp;nbsp;I've been fighting quite a bit, but I can't manage to get XCode to break at my breakpoints when trying to trace Tk execution.
&lt;br&gt;&lt;br&gt;&amp;nbsp;I'm building Tcl/Tk8.5.8 (Tk-decarbon). I'm using the Wish.xcodeproj projects in the hope of using XCode nice debugger (XCode 3.2.1 on Mac OS X 10.6.2).
&lt;br&gt;&lt;br&gt;&amp;nbsp;I build the default target (Tk) in the DebugNoFixZL configuration. I put some breakpoints in the source tree. I &amp;quot;Debug - breakpoints on&amp;quot;, Wish.app launches and loads the freshly build Tk framework (checked by setting DYLD_PRINT_LIBRARIES), but the program won't break at any of my breakpoints.
&lt;br&gt;&lt;br&gt;&amp;nbsp;In the &amp;quot;Breakpoint window&amp;quot;, my breakpoints remain in grey, as if XCode didn't recognize that the library has been loaded.
&lt;br&gt;&lt;br&gt;&amp;nbsp;What am I doing wrong?
&lt;br&gt;&lt;br&gt;&amp;nbsp; Thanks,
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp;François
&lt;br&gt;&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Join us December 9, 2009 for the Red Hat Virtual Experience,
&lt;br&gt;a free event focused on virtualization and cloud computing. 
&lt;br&gt;Attend in-depth sessions from your desk. Your couch. Anywhere.
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/redhat-sfdev2dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/redhat-sfdev2dev&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Tcl-mac mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26665799&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;tcl-mac@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/tcl-mac&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/tcl-mac&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Help-tracing-Tk-execution-tp26665799p26665799.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26654291</id>
	<title>Re: NSCFString error in Tk-Cocoa</title>
	<published>2009-12-05T01:48:52Z</published>
	<updated>2009-12-05T01:48:52Z</updated>
	<author>
		<name>Torsten Berg</name>
	</author>
	<content type="html">Hi,
&lt;br&gt;&lt;br&gt;&amp;gt; I have a 10.5.8 user reporting an uncaught Objective-C exception in one 
&lt;br&gt;&amp;gt; of my programs that runs on Tk-Cocoa 8.5.7. The error log causes my 
&lt;br&gt;&amp;gt; application to crash, with the messages below logged to Console:
&lt;br&gt;&lt;br&gt;&amp;gt; The error occurs when the user is typing a password into a ttk::entry 
&lt;br&gt;&amp;gt; field. &amp;nbsp;The relevant code is below:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 	ttk::entry .password.top.entry -show \u2022 -textvariable 
&lt;br&gt;&amp;gt; authorize::password
&lt;br&gt;&lt;br&gt;This sounds like what I experienced when entering a circumflex (^) in an entry on Tk 8.6b1.1.
&lt;br&gt;It works on 8.5.8 though. I have filed a bug about this:
&lt;br&gt;&lt;br&gt;&lt;a href=&quot;http://sourceforge.net/tracker/?func=detail&amp;atid=112997&amp;aid=2907388&amp;group_id=12997&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://sourceforge.net/tracker/?func=detail&amp;atid=112997&amp;aid=2907388&amp;group_id=12997&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;Torsten
&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Join us December 9, 2009 for the Red Hat Virtual Experience,
&lt;br&gt;a free event focused on virtualization and cloud computing. 
&lt;br&gt;Attend in-depth sessions from your desk. Your couch. Anywhere.
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/redhat-sfdev2dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/redhat-sfdev2dev&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Tcl-mac mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26654291&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;tcl-mac@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/tcl-mac&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/tcl-mac&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/NSCFString-error-in-Tk-Cocoa-tp26619847p26654291.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26633076</id>
	<title>Re: TCL 8.5 and MacOS 10.3.9</title>
	<published>2009-12-03T12:56:05Z</published>
	<updated>2009-12-03T12:56:05Z</updated>
	<author>
		<name>Kevan Hashemi</name>
	</author>
	<content type="html">Dear Jasper,
&lt;br&gt;&lt;br&gt;Jasper Taylor wrote:
&lt;br&gt;&amp;gt; You need to give the compiler switch:
&lt;br&gt;&amp;gt; -mmacosx-version-min=10.3
&lt;br&gt;&lt;br&gt;Thanks Jasper. I'll give that a shot. I'm still working on 10.4, so 
&lt;br&gt;should be able to compile for all.
&lt;br&gt;&lt;br&gt;Yours, Kevan
&lt;br&gt;&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Kevan Hashemi, Electrical Engineer
&lt;br&gt;Physics Department, Brandeis University
&lt;br&gt;&lt;a href=&quot;http://alignment.hep.brandeis.edu/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://alignment.hep.brandeis.edu/&lt;/a&gt;&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Join us December 9, 2009 for the Red Hat Virtual Experience,
&lt;br&gt;a free event focused on virtualization and cloud computing. 
&lt;br&gt;Attend in-depth sessions from your desk. Your couch. Anywhere.
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/redhat-sfdev2dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/redhat-sfdev2dev&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Tcl-mac mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26633076&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;tcl-mac@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/tcl-mac&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/tcl-mac&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/TCL-8.5-and-MacOS-10.3.9-tp26625641p26633076.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26625641</id>
	<title>TCL 8.5 and MacOS 10.3.9</title>
	<published>2009-12-03T05:04:30Z</published>
	<updated>2009-12-03T05:04:30Z</updated>
	<author>
		<name>Kevan Hashemi</name>
	</author>
	<content type="html">Hi,
&lt;br&gt;&lt;br&gt;One of my users has a 10.3.9 machine and claims that our code, which 
&lt;br&gt;runs on top of TCL 8.5.5, won't start up. I don't have any 10.3.9 
&lt;br&gt;machines left to confirm or deny her claim. This 8.5.5 is one I compiled 
&lt;br&gt;from sources myself.
&lt;br&gt;&lt;br&gt;I doubt any of you have 10.3.9 machines either, but I'm just wondering: 
&lt;br&gt;is there a special compiler directive or makefile option I need to 
&lt;br&gt;specify during compilation to make the code compatible with 10.3.9?
&lt;br&gt;&lt;br&gt;Yours, Kevan
&lt;br&gt;&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Kevan Hashemi, Electrical Engineer
&lt;br&gt;Physics Department, Brandeis University
&lt;br&gt;&lt;a href=&quot;http://alignment.hep.brandeis.edu/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://alignment.hep.brandeis.edu/&lt;/a&gt;&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Join us December 9, 2009 for the Red Hat Virtual Experience,
&lt;br&gt;a free event focused on virtualization and cloud computing. 
&lt;br&gt;Attend in-depth sessions from your desk. Your couch. Anywhere.
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/redhat-sfdev2dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/redhat-sfdev2dev&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Tcl-mac mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26625641&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;tcl-mac@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/tcl-mac&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/tcl-mac&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/TCL-8.5-and-MacOS-10.3.9-tp26625641p26625641.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26619847</id>
	<title>NSCFString error in Tk-Cocoa</title>
	<published>2009-12-02T17:36:31Z</published>
	<updated>2009-12-02T17:36:31Z</updated>
	<author>
		<name>Kevin Walzer-5</name>
	</author>
	<content type="html">I have a 10.5.8 user reporting an uncaught Objective-C exception in one 
&lt;br&gt;of my programs that runs on Tk-Cocoa 8.5.7. The error log causes my 
&lt;br&gt;application to crash, with the messages below logged to Console:
&lt;br&gt;&lt;br&gt;09-12-02 15:16:21.598 PortAuthority[2071:10b] An uncaught exception was 
&lt;br&gt;raised
&lt;br&gt;2009-12-02 15:16:21.601 PortAuthority[2071:10b] *** -[NSCFString 
&lt;br&gt;characterAtIndex:]: Range or index out of bounds
&lt;br&gt;2009-12-02 15:16:21.602 PortAuthority[2071:10b] *** Terminating app due 
&lt;br&gt;to uncaught exception 'NSRangeException', reason: '*** -[NSCFString 
&lt;br&gt;characterAtIndex:]: Range or index out of bounds'
&lt;br&gt;&lt;br&gt;The error occurs when the user is typing a password into a ttk::entry 
&lt;br&gt;field. &amp;nbsp;The relevant code is below:
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ttk::entry .password.top.entry -show \u2022 -textvariable 
&lt;br&gt;authorize::password
&lt;br&gt;&lt;br&gt;I can't reproduce this on my 10.5.8 system, and the error does not 
&lt;br&gt;appear to be related to any of the other bugs that users have reported 
&lt;br&gt;with some of my Tk-Cocoa programs (conflicts with input managers, 
&lt;br&gt;conflicts between 64-bit and 32-bit libraries, etc.). I've also had this 
&lt;br&gt;code in the application for years, and it's never crashed before (with 
&lt;br&gt;Tk-Carbon or Tk-Cocoa).
&lt;br&gt;&lt;br&gt;I've found various references to &amp;quot;-[NSCFString characterAtIndex:]: Range 
&lt;br&gt;or index out of bounds&amp;quot; on Google, but there doesn't appear to be any 
&lt;br&gt;common pattern to them.
&lt;br&gt;&lt;br&gt;Any insight is appreciated.
&lt;br&gt;&lt;br&gt;--Kevin
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Kevin Walzer
&lt;br&gt;Code by Kevin
&lt;br&gt;&lt;a href=&quot;http://www.codebykevin.com&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.codebykevin.com&lt;/a&gt;&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Join us December 9, 2009 for the Red Hat Virtual Experience,
&lt;br&gt;a free event focused on virtualization and cloud computing. 
&lt;br&gt;Attend in-depth sessions from your desk. Your couch. Anywhere.
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/redhat-sfdev2dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/redhat-sfdev2dev&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Tcl-mac mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26619847&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;tcl-mac@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/tcl-mac&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/tcl-mac&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/NSCFString-error-in-Tk-Cocoa-tp26619847p26619847.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26602055</id>
	<title>Re: sleep/wake events</title>
	<published>2009-12-01T17:14:34Z</published>
	<updated>2009-12-01T17:14:34Z</updated>
	<author>
		<name>jguyer</name>
	</author>
	<content type="html">Quoting Lloyd Wood &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26602055&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;L.Wood@...&lt;/a&gt;&amp;gt;:
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; On 1 Dec 2009, at 23:38, Kevin Walzer wrote:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; On 12/1/09 1:54 PM, &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26602055&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jguyer@...&lt;/a&gt; wrote:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Quoting Kevin Walzer&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26602055&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;kw@...&lt;/a&gt;&amp;gt;:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; I noticed some recent SVN updates to TclAE (in September). Did all the
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; work stemming from the list traffic about TclAE over the summer result
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; in 64-bit compatability?
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; I'm not sure what you're seeing, but there haven't been any SVN
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; checkins since last March. I've not done any work on 64-bit.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Whoops, I mistook a date of 2009/09/02 to mean September 2, 2009.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; ....which is exactly what it means in most of the world and in &amp;nbsp; 
&lt;br&gt;&amp;gt; ISO8601 format.
&lt;/div&gt;&lt;br&gt;You are (both) correctly interpreting the date. Just not the &amp;nbsp;
&lt;br&gt;significance of what happened that date:
&lt;br&gt;&lt;br&gt;---
&lt;br&gt;TclAE
&lt;br&gt;jguyer made 1 file-release changes.
&lt;br&gt;&lt;br&gt;2009-09-02 17:24:02 UTC by jguyer
&lt;br&gt;---
&lt;br&gt;&lt;br&gt;A file-release change is not an SVN change; it's a change to what's &amp;nbsp;
&lt;br&gt;available in the Files tab. As I recall, I was getting rid of some &amp;nbsp;
&lt;br&gt;older versions that were still there.
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; confused,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; L.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;lt;&lt;a href=&quot;http://info.ee.surrey.ac.uk/Personal/L.Wood/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://info.ee.surrey.ac.uk/Personal/L.Wood/&lt;/a&gt;&amp;gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26602055&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;L.Wood@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; ------------------------------------------------------------------------------
&lt;br&gt;&amp;gt; Join us December 9, 2009 for the Red Hat Virtual Experience,
&lt;br&gt;&amp;gt; a free event focused on virtualization and cloud computing.
&lt;br&gt;&amp;gt; Attend in-depth sessions from your desk. Your couch. Anywhere.
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://p.sf.net/sfu/redhat-sfdev2dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/redhat-sfdev2dev&lt;/a&gt;&lt;br&gt;&amp;gt; _______________________________________________
&lt;br&gt;&amp;gt; Tcl-mac mailing list
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26602055&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;tcl-mac@...&lt;/a&gt;
&lt;br&gt;&amp;gt; &lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/tcl-mac&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/tcl-mac&lt;/a&gt;&lt;br&gt;&amp;gt;
&lt;/div&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Join us December 9, 2009 for the Red Hat Virtual Experience,
&lt;br&gt;a free event focused on virtualization and cloud computing. 
&lt;br&gt;Attend in-depth sessions from your desk. Your couch. Anywhere.
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/redhat-sfdev2dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/redhat-sfdev2dev&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Tcl-mac mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26602055&amp;i=5&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;tcl-mac@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/tcl-mac&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/tcl-mac&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/sleep-wake-events-tp26586895p26602055.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26601275</id>
	<title>Re: sleep/wake events</title>
	<published>2009-12-01T15:52:58Z</published>
	<updated>2009-12-01T15:52:58Z</updated>
	<author>
		<name>Lloyd Wood</name>
	</author>
	<content type="html">&lt;br&gt;On 1 Dec 2009, at 23:38, Kevin Walzer wrote:
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; On 12/1/09 1:54 PM, &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26601275&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jguyer@...&lt;/a&gt; wrote:
&lt;br&gt;&amp;gt;&amp;gt; Quoting Kevin Walzer&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26601275&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;kw@...&lt;/a&gt;&amp;gt;:
&lt;br&gt;&amp;gt;&amp;gt; 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; I noticed some recent SVN updates to TclAE (in September). Did all the
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; work stemming from the list traffic about TclAE over the summer result
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; in 64-bit compatability?
&lt;br&gt;&amp;gt;&amp;gt; 
&lt;br&gt;&amp;gt;&amp;gt; I'm not sure what you're seeing, but there haven't been any SVN
&lt;br&gt;&amp;gt;&amp;gt; checkins since last March. I've not done any work on 64-bit.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Whoops, I mistook a date of 2009/09/02 to mean September 2, 2009.
&lt;/div&gt;&lt;br&gt;...which is exactly what it means in most of the world and in ISO8601 format.
&lt;br&gt;&lt;br&gt;confused,
&lt;br&gt;&lt;br&gt;L.
&lt;br&gt;&lt;br&gt;&amp;lt;&lt;a href=&quot;http://info.ee.surrey.ac.uk/Personal/L.Wood/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://info.ee.surrey.ac.uk/Personal/L.Wood/&lt;/a&gt;&amp;gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26601275&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;L.Wood@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Join us December 9, 2009 for the Red Hat Virtual Experience,
&lt;br&gt;a free event focused on virtualization and cloud computing. 
&lt;br&gt;Attend in-depth sessions from your desk. Your couch. Anywhere.
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/redhat-sfdev2dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/redhat-sfdev2dev&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Tcl-mac mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26601275&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;tcl-mac@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/tcl-mac&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/tcl-mac&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/sleep-wake-events-tp26586895p26601275.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26601101</id>
	<title>Re: sleep/wake events</title>
	<published>2009-12-01T15:38:46Z</published>
	<updated>2009-12-01T15:38:46Z</updated>
	<author>
		<name>Kevin Walzer-5</name>
	</author>
	<content type="html">On 12/1/09 1:54 PM, &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26601101&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jguyer@...&lt;/a&gt; wrote:
&lt;br&gt;&amp;gt; Quoting Kevin Walzer&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26601101&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;kw@...&lt;/a&gt;&amp;gt;:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; I noticed some recent SVN updates to TclAE (in September). Did all the
&lt;br&gt;&amp;gt;&amp;gt; work stemming from the list traffic about TclAE over the summer result
&lt;br&gt;&amp;gt;&amp;gt; in 64-bit compatability?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I'm not sure what you're seeing, but there haven't been any SVN
&lt;br&gt;&amp;gt; checkins since last March. I've not done any work on 64-bit.
&lt;br&gt;&lt;br&gt;Whoops, I mistook a date of 2009/09/02 to mean September 2, 2009. My bad.
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Kevin Walzer
&lt;br&gt;Code by Kevin
&lt;br&gt;&lt;a href=&quot;http://www.codebykevin.com&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.codebykevin.com&lt;/a&gt;&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Join us December 9, 2009 for the Red Hat Virtual Experience,
&lt;br&gt;a free event focused on virtualization and cloud computing. 
&lt;br&gt;Attend in-depth sessions from your desk. Your couch. Anywhere.
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/redhat-sfdev2dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/redhat-sfdev2dev&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Tcl-mac mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26601101&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;tcl-mac@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/tcl-mac&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/tcl-mac&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/sleep-wake-events-tp26586895p26601101.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26597156</id>
	<title>Re: sleep/wake events</title>
	<published>2009-12-01T10:54:27Z</published>
	<updated>2009-12-01T10:54:27Z</updated>
	<author>
		<name>jguyer</name>
	</author>
	<content type="html">Quoting Kevin Walzer &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26597156&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;kw@...&lt;/a&gt;&amp;gt;:
&lt;br&gt;&lt;br&gt;&amp;gt; I noticed some recent SVN updates to TclAE (in September). Did all the
&lt;br&gt;&amp;gt; work stemming from the list traffic about TclAE over the summer result
&lt;br&gt;&amp;gt; in 64-bit compatability?
&lt;br&gt;&lt;br&gt;I'm not sure what you're seeing, but there haven't been any SVN &amp;nbsp;
&lt;br&gt;checkins since last March. I've not done any work on 64-bit.
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Join us December 9, 2009 for the Red Hat Virtual Experience,
&lt;br&gt;a free event focused on virtualization and cloud computing. 
&lt;br&gt;Attend in-depth sessions from your desk. Your couch. Anywhere.
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/redhat-sfdev2dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/redhat-sfdev2dev&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Tcl-mac mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26597156&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;tcl-mac@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/tcl-mac&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/tcl-mac&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/sleep-wake-events-tp26586895p26597156.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26597037</id>
	<title>Re: sleep/wake events</title>
	<published>2009-12-01T10:47:18Z</published>
	<updated>2009-12-01T10:47:18Z</updated>
	<author>
		<name>jguyer</name>
	</author>
	<content type="html">Quoting Barry Skidmore &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26597037&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;atri@...&lt;/a&gt;&amp;gt;:
&lt;br&gt;&lt;br&gt;&amp;gt; I think (not sure) that the app will have to be running during sleep &amp;nbsp;
&lt;br&gt;&amp;gt; &amp;nbsp;wake to intercept an event yes?
&lt;br&gt;&lt;br&gt;Yes.
&lt;br&gt;&lt;br&gt;&amp;gt; So I believe that the reason for binding to sleep wake is at issue &amp;nbsp; 
&lt;br&gt;&amp;gt; to provide a suitable solution.
&lt;br&gt;&lt;br&gt;Agreed.
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Join us December 9, 2009 for the Red Hat Virtual Experience,
&lt;br&gt;a free event focused on virtualization and cloud computing. 
&lt;br&gt;Attend in-depth sessions from your desk. Your couch. Anywhere.
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/redhat-sfdev2dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/redhat-sfdev2dev&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Tcl-mac mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26597037&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;tcl-mac@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/tcl-mac&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/tcl-mac&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/sleep-wake-events-tp26586895p26597037.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26596886</id>
	<title>Re: sleep/wake events</title>
	<published>2009-12-01T10:38:34Z</published>
	<updated>2009-12-01T10:38:34Z</updated>
	<author>
		<name>Barry Skidmore-3</name>
	</author>
	<content type="html">I'm no TCLAE expert (I have hacked at it)
&lt;br&gt;&lt;br&gt;When using AppleScript to do the job I tied to the screensaver activate deactivate events.
&lt;br&gt;&lt;br&gt;I think (not sure) that the app will have to be running during sleep wake to intercept an event yes?
&lt;br&gt;&lt;br&gt;So I believe that the reason for binding to sleep wake is at issue to provide a suitable solution.
&lt;br&gt;&lt;br&gt;On Dec 1, 2009, at 6:25 AM, &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26596886&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jguyer@...&lt;/a&gt; wrote:
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Quoting Barry Skidmore &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26596886&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;atri@...&lt;/a&gt;&amp;gt;:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt;&amp;gt; you can use applescript menu items to launch your app on wake/sleep.
&lt;br&gt;&amp;gt;&amp;gt; 
&lt;br&gt;&amp;gt;&amp;gt; tcl itslef does not provide those bindinhs.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; You should be able to use TclAE to install AppleEvent handlers for &amp;nbsp;
&lt;br&gt;&amp;gt; those events, then. I'm at a conference and don't have time to &amp;nbsp;
&lt;br&gt;&amp;gt; research the details at the moment, but will try to find time in the &amp;nbsp;
&lt;br&gt;&amp;gt; next few days.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; ------------------------------------------------------------------------------
&lt;br&gt;&amp;gt; Join us December 9, 2009 for the Red Hat Virtual Experience,
&lt;br&gt;&amp;gt; a free event focused on virtualization and cloud computing. 
&lt;br&gt;&amp;gt; Attend in-depth sessions from your desk. Your couch. Anywhere.
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://p.sf.net/sfu/redhat-sfdev2dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/redhat-sfdev2dev&lt;/a&gt;&lt;br&gt;&amp;gt; _______________________________________________
&lt;br&gt;&amp;gt; Tcl-mac mailing list
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26596886&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;tcl-mac@...&lt;/a&gt;
&lt;br&gt;&amp;gt; &lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/tcl-mac&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/tcl-mac&lt;/a&gt;&lt;/div&gt;&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Join us December 9, 2009 for the Red Hat Virtual Experience,
&lt;br&gt;a free event focused on virtualization and cloud computing. 
&lt;br&gt;Attend in-depth sessions from your desk. Your couch. Anywhere.
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/redhat-sfdev2dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/redhat-sfdev2dev&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Tcl-mac mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26596886&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;tcl-mac@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/tcl-mac&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/tcl-mac&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/sleep-wake-events-tp26586895p26596886.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26596091</id>
	<title>Re: sleep/wake events</title>
	<published>2009-12-01T08:02:05Z</published>
	<updated>2009-12-01T08:02:05Z</updated>
	<author>
		<name>Kevin Walzer-5</name>
	</author>
	<content type="html">On 12/1/09 9:25 AM, &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26596091&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jguyer@...&lt;/a&gt; wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Quoting Barry Skidmore&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26596091&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;atri@...&lt;/a&gt;&amp;gt;:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; you can use applescript menu items to launch your app on wake/sleep.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; tcl itslef does not provide those bindinhs.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; You should be able to use TclAE to install AppleEvent handlers for
&lt;br&gt;&amp;gt; those events, then. I'm at a conference and don't have time to
&lt;br&gt;&amp;gt; research the details at the moment, but will try to find time in the
&lt;br&gt;&amp;gt; next few days.
&lt;/div&gt;&lt;br&gt;Jon,
&lt;br&gt;&lt;br&gt;I noticed some recent SVN updates to TclAE (in September). Did all the 
&lt;br&gt;work stemming from the list traffic about TclAE over the summer result 
&lt;br&gt;in 64-bit compatability?
&lt;br&gt;&lt;br&gt;--Kevin
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Kevin Walzer
&lt;br&gt;Code by Kevin
&lt;br&gt;&lt;a href=&quot;http://www.codebykevin.com&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.codebykevin.com&lt;/a&gt;&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Join us December 9, 2009 for the Red Hat Virtual Experience,
&lt;br&gt;a free event focused on virtualization and cloud computing. 
&lt;br&gt;Attend in-depth sessions from your desk. Your couch. Anywhere.
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/redhat-sfdev2dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/redhat-sfdev2dev&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Tcl-mac mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26596091&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;tcl-mac@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/tcl-mac&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/tcl-mac&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/sleep-wake-events-tp26586895p26596091.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26592676</id>
	<title>Re: sleep/wake events</title>
	<published>2009-12-01T06:25:53Z</published>
	<updated>2009-12-01T06:25:53Z</updated>
	<author>
		<name>jguyer</name>
	</author>
	<content type="html">Quoting Barry Skidmore &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26592676&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;atri@...&lt;/a&gt;&amp;gt;:
&lt;br&gt;&lt;br&gt;&amp;gt; you can use applescript menu items to launch your app on wake/sleep.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; tcl itslef does not provide those bindinhs.
&lt;br&gt;&lt;br&gt;You should be able to use TclAE to install AppleEvent handlers for &amp;nbsp;
&lt;br&gt;those events, then. I'm at a conference and don't have time to &amp;nbsp;
&lt;br&gt;research the details at the moment, but will try to find time in the &amp;nbsp;
&lt;br&gt;next few days.
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Join us December 9, 2009 for the Red Hat Virtual Experience,
&lt;br&gt;a free event focused on virtualization and cloud computing. 
&lt;br&gt;Attend in-depth sessions from your desk. Your couch. Anywhere.
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/redhat-sfdev2dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/redhat-sfdev2dev&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Tcl-mac mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26592676&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;tcl-mac@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/tcl-mac&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/tcl-mac&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/sleep-wake-events-tp26586895p26592676.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26586953</id>
	<title>Re: sleep/wake events</title>
	<published>2009-11-30T21:43:02Z</published>
	<updated>2009-11-30T21:43:02Z</updated>
	<author>
		<name>Barry Skidmore-3</name>
	</author>
	<content type="html">you can use applescript menu items to launch your app on wake/sleep.
&lt;br&gt;&lt;br&gt;tcl itslef does not provide those bindinhs.
&lt;br&gt;&lt;br&gt;Sent from my iPhone
&lt;br&gt;&lt;br&gt;On Nov 30, 2009, at 9:30 PM, Hans-Christoph Steiner &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26586953&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;hans@...&lt;/a&gt;&amp;gt; &amp;nbsp;
&lt;br&gt;wrote:
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Hey all,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I'd like to trigger an action when Mac OS X wakes up after sleeping.
&lt;br&gt;&amp;gt; Is there a way to get sleep/wake events in Tcl?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; .hc
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; --- 
&lt;br&gt;&amp;gt; --- 
&lt;br&gt;&amp;gt; ----------------------------------------------------------------------
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I have the audacity to believe that peoples everywhere can have three
&lt;br&gt;&amp;gt; meals a day for their bodies, education and culture for their minds,
&lt;br&gt;&amp;gt; and dignity, equality and freedom for their spirits. &amp;nbsp; &amp;nbsp; &amp;nbsp;- Martin
&lt;br&gt;&amp;gt; Luther King, Jr.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; --- 
&lt;br&gt;&amp;gt; --- 
&lt;br&gt;&amp;gt; --- 
&lt;br&gt;&amp;gt; ---------------------------------------------------------------------
&lt;br&gt;&amp;gt; Join us December 9, 2009 for the Red Hat Virtual Experience,
&lt;br&gt;&amp;gt; a free event focused on virtualization and cloud computing.
&lt;br&gt;&amp;gt; Attend in-depth sessions from your desk. Your couch. Anywhere.
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://p.sf.net/sfu/redhat-sfdev2dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/redhat-sfdev2dev&lt;/a&gt;&lt;br&gt;&amp;gt; _______________________________________________
&lt;br&gt;&amp;gt; Tcl-mac mailing list
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26586953&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;tcl-mac@...&lt;/a&gt;
&lt;br&gt;&amp;gt; &lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/tcl-mac&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/tcl-mac&lt;/a&gt;&lt;/div&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Join us December 9, 2009 for the Red Hat Virtual Experience,
&lt;br&gt;a free event focused on virtualization and cloud computing. 
&lt;br&gt;Attend in-depth sessions from your desk. Your couch. Anywhere.
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/redhat-sfdev2dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/redhat-sfdev2dev&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Tcl-mac mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26586953&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;tcl-mac@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/tcl-mac&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/tcl-mac&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/sleep-wake-events-tp26586895p26586953.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26586895</id>
	<title>sleep/wake events</title>
	<published>2009-11-30T21:30:49Z</published>
	<updated>2009-11-30T21:30:49Z</updated>
	<author>
		<name>Hans-Christoph Steiner-2</name>
	</author>
	<content type="html">&lt;br&gt;Hey all,
&lt;br&gt;&lt;br&gt;I'd like to trigger an action when Mac OS X wakes up after sleeping. &amp;nbsp; 
&lt;br&gt;Is there a way to get sleep/wake events in Tcl?
&lt;br&gt;&lt;br&gt;.hc
&lt;br&gt;&lt;br&gt;----------------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;I have the audacity to believe that peoples everywhere can have three &amp;nbsp;
&lt;br&gt;meals a day for their bodies, education and culture for their minds, &amp;nbsp;
&lt;br&gt;and dignity, equality and freedom for their spirits. &amp;nbsp; &amp;nbsp; &amp;nbsp;- Martin &amp;nbsp;
&lt;br&gt;Luther King, Jr.
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Join us December 9, 2009 for the Red Hat Virtual Experience,
&lt;br&gt;a free event focused on virtualization and cloud computing. 
&lt;br&gt;Attend in-depth sessions from your desk. Your couch. Anywhere.
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/redhat-sfdev2dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/redhat-sfdev2dev&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Tcl-mac mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26586895&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;tcl-mac@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/tcl-mac&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/tcl-mac&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/sleep-wake-events-tp26586895p26586895.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26523580</id>
	<title>Re: Native custom sheets in Tk-Cocoa</title>
	<published>2009-11-25T18:32:25Z</published>
	<updated>2009-11-25T18:32:25Z</updated>
	<author>
		<name>Kevin Walzer-5</name>
	</author>
	<content type="html">On 11/25/09 10:48 AM, Kevin Walzer wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; I'm trying to implement an extension that draws custom sheets in
&lt;br&gt;&amp;gt; Tk-Cocoa, so that a custom dialog or window can slide down from the top
&lt;br&gt;&amp;gt; of the window, as they do with tk_messageBoxes that have a &amp;quot;-parent&amp;quot;
&lt;br&gt;&amp;gt; flag set.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I'm making some progress, but the outcome isn't what I expect. I can get
&lt;br&gt;&amp;gt; the sheet to draw, but instead of animating, it completely overlays its
&lt;br&gt;&amp;gt; parent window, and then blocks the application. Also, only the topmost
&lt;br&gt;&amp;gt; widget in the sheet is displayed, i.e. a frame; its child widgets,
&lt;br&gt;&amp;gt; including the button to close the sheet, are not drawn.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; It would be nice to get this working natively. I've actually developed a
&lt;br&gt;&amp;gt; script-level package that provides a decent implementation of sheets by
&lt;br&gt;&amp;gt; animating a frame via repeated calls to &amp;quot;place,&amp;quot; but it doesn't look
&lt;br&gt;&amp;gt; quite right--there's no drop shadow on it, so I have to set the right
&lt;br&gt;&amp;gt; type of relief on the widget. However, if I can't get custom sheets
&lt;br&gt;&amp;gt; working, then I'll go with the script-level package.
&lt;/div&gt;&lt;br&gt;Update:
&lt;br&gt;&lt;br&gt;Some good progress, the issue isn't with my C-level code, it's correctly 
&lt;br&gt;managing the drawing and window geometry of the window when the sheet is 
&lt;br&gt;drawn. There isn't a perfect correlation between Tk's window-mapping 
&lt;br&gt;functions and animating the sheet, i.e. I can't just run the &amp;quot;sheet&amp;quot; 
&lt;br&gt;command and have the sheet automagically draw in the correct position. 
&lt;br&gt;When I release this as open source, I'll either have to include some 
&lt;br&gt;script-level routines for drawing the window with correct placement or, 
&lt;br&gt;at the very least, some documentation. Still, I'm pleased that this is 
&lt;br&gt;moving forward.
&lt;br&gt;&lt;br&gt;--Kevin
&lt;br&gt;-- 
&lt;br&gt;Kevin Walzer
&lt;br&gt;Code by Kevin
&lt;br&gt;&lt;a href=&quot;http://www.codebykevin.com&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.codebykevin.com&lt;/a&gt;&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
&lt;br&gt;trial. Simplify your report design, integration and deployment - and focus on 
&lt;br&gt;what you do best, core application coding. Discover what's new with
&lt;br&gt;Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Tcl-mac mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26523580&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;tcl-mac@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/tcl-mac&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/tcl-mac&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Native-custom-sheets-in-Tk-Cocoa-tp26515092p26523580.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26515092</id>
	<title>Native custom sheets in Tk-Cocoa</title>
	<published>2009-11-25T07:48:50Z</published>
	<updated>2009-11-25T07:48:50Z</updated>
	<author>
		<name>Kevin Walzer-5</name>
	</author>
	<content type="html">I'm trying to implement an extension that draws custom sheets in 
&lt;br&gt;Tk-Cocoa, so that a custom dialog or window can slide down from the top 
&lt;br&gt;of the window, as they do with tk_messageBoxes that have a &amp;quot;-parent&amp;quot; 
&lt;br&gt;flag set.
&lt;br&gt;&lt;br&gt;I'm making some progress, but the outcome isn't what I expect. I can get 
&lt;br&gt;the sheet to draw, but instead of animating, it completely overlays its 
&lt;br&gt;parent window, and then blocks the application. Also, only the topmost 
&lt;br&gt;widget in the sheet is displayed, i.e. a frame; its child widgets, 
&lt;br&gt;including the button to close the sheet, are not drawn.
&lt;br&gt;&lt;br&gt;It would be nice to get this working natively. I've actually developed a 
&lt;br&gt;script-level package that provides a decent implementation of sheets by 
&lt;br&gt;animating a frame via repeated calls to &amp;quot;place,&amp;quot; but it doesn't look 
&lt;br&gt;quite right--there's no drop shadow on it, so I have to set the right 
&lt;br&gt;type of relief on the widget. However, if I can't get custom sheets 
&lt;br&gt;working, then I'll go with the script-level package.
&lt;br&gt;&lt;br&gt;My code is below, and advice is appreciated. --Kevin
&lt;br&gt;&lt;br&gt;Objective-C code:
&lt;br&gt;&lt;br&gt;//run the sheet
&lt;br&gt;int RunTkSheet(ClientData clientData, Tcl_Interp *ip,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;int objc, Tcl_Obj *CONST objv[]) {
&lt;br&gt;&amp;nbsp; &amp;nbsp;if (objc != 3) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Tcl_WrongNumArgs(ip, 1, objv, &amp;quot;parent? sheet?&amp;quot;);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;return TCL_ERROR;
&lt;br&gt;&amp;nbsp; &amp;nbsp;}
&lt;br&gt;&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp;//get handle on parent Cocoa window from Tk
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp;Tk_Window parentpath = Tk_NameToWindow(ip, Tcl_GetString(objv[1]), 
&lt;br&gt;Tk_MainWindow(ip));
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp;if (parentpath == NULL) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;return TCL_ERROR;
&lt;br&gt;&amp;nbsp; &amp;nbsp;}
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp;Drawable parent_d = Tk_WindowId(parentpath);
&lt;br&gt;&amp;nbsp; &amp;nbsp;NSView *parentview = TkMacOSXGetRootControl(parent_d);
&lt;br&gt;&amp;nbsp; &amp;nbsp;NSWindow *parent = [parentview window];
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp;//get handle on sheet Cocoa window from Tk
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp;Tk_Window sheetpath = Tk_NameToWindow(ip, Tcl_GetString(objv[2]), 
&lt;br&gt;Tk_MainWindow(ip));
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp;if (sheetpath == NULL) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;return TCL_ERROR;
&lt;br&gt;&amp;nbsp; &amp;nbsp;}
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp;Tk_MakeWindowExist(sheetpath);
&lt;br&gt;&amp;nbsp; &amp;nbsp;Tk_MapWindow(sheetpath);
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp;Drawable sheet_d = Tk_WindowId(sheetpath);
&lt;br&gt;&amp;nbsp; &amp;nbsp;NSView *sheetview = TkMacOSXGetRootControl(sheet_d);
&lt;br&gt;&amp;nbsp; &amp;nbsp;NSWindow *sheet = [sheetview window];
&lt;br&gt;&amp;nbsp; &amp;nbsp;if (sheet == nil) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;return TCL_ERROR;
&lt;br&gt;&amp;nbsp; &amp;nbsp;}
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp;//display the sheet
&lt;br&gt;&amp;nbsp; &amp;nbsp;[NSApp beginSheet:sheet
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; modalForWindow:parent
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;modalDelegate:nil
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; didEndSelector:NULL
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; contextInfo:nil];
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp;NSLog(@&amp;quot;sheet drawn&amp;quot;);
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp;return TCL_OK;
&lt;br&gt;&lt;br&gt;}
&lt;br&gt;&lt;br&gt;//run the sheet
&lt;br&gt;int HideTkSheet(ClientData clientData, Tcl_Interp *ip,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; int objc, Tcl_Obj *CONST objv[]) {
&lt;br&gt;&amp;nbsp; &amp;nbsp;if (objc != 2) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Tcl_WrongNumArgs(ip, 1, objv, &amp;quot;sheet?&amp;quot;);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;return TCL_ERROR;
&lt;br&gt;&amp;nbsp; &amp;nbsp;}
&lt;br&gt;&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp;//get handle on sheet Cocoa window from Tk
&lt;br&gt;&amp;nbsp; &amp;nbsp;Tk_Window sheetpath = Tk_NameToWindow(ip, Tcl_GetString(objv[1]), 
&lt;br&gt;Tk_MainWindow(ip));
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp;if (sheetpath == NULL) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;return TCL_ERROR;
&lt;br&gt;&amp;nbsp; &amp;nbsp;}
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp;Drawable sheet_d = Tk_WindowId(sheetpath);
&lt;br&gt;&amp;nbsp; &amp;nbsp;NSView *sheetview = TkMacOSXGetRootControl(sheet_d);
&lt;br&gt;&amp;nbsp; &amp;nbsp;NSWindow *sheet = [sheetview window];
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp;//hide the sheet
&lt;br&gt;&amp;nbsp; &amp;nbsp;[NSApp endSheet:sheet];
&lt;br&gt;&amp;nbsp; &amp;nbsp;[sheet orderOut:nil];
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp;NSLog(@&amp;quot;sheet hidden&amp;quot;);
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp;//clean up
&lt;br&gt;&amp;nbsp; &amp;nbsp;Tk_DestroyWindow(sheetpath);
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp;return TCL_OK;
&lt;br&gt;&lt;br&gt;}
&lt;br&gt;&lt;br&gt;Here's the test code:
&lt;br&gt;&lt;br&gt;package require macsheet
&lt;br&gt;&lt;br&gt;button .b -text &amp;quot;Run Sheet&amp;quot; -command sheetf
&lt;br&gt;pack .b
&lt;br&gt;&lt;br&gt;&lt;br&gt;proc sheetf {} {
&lt;br&gt;frame .f -bg blue
&lt;br&gt;label .f.l -bg red -text &amp;quot;Sheet&amp;quot;
&lt;br&gt;pack .f.l -fill both -expand yes
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;button .f.b -text &amp;quot;Close Sheet&amp;quot; -command [list macsheet::hidesheet .f]
&lt;br&gt;pack .f.b
&lt;br&gt;&lt;br&gt;macsheet::runsheet &amp;nbsp;. .f
&lt;br&gt;&lt;br&gt;}
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Kevin Walzer
&lt;br&gt;Code by Kevin
&lt;br&gt;&lt;a href=&quot;http://www.codebykevin.com&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.codebykevin.com&lt;/a&gt;&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
&lt;br&gt;trial. Simplify your report design, integration and deployment - and focus on 
&lt;br&gt;what you do best, core application coding. Discover what's new with
&lt;br&gt;Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Tcl-mac mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26515092&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;tcl-mac@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/tcl-mac&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/tcl-mac&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Native-custom-sheets-in-Tk-Cocoa-tp26515092p26515092.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26420528</id>
	<title>Re: Multi-column menus in Cocoa Tk</title>
	<published>2009-11-18T20:45:02Z</published>
	<updated>2009-11-18T20:45:02Z</updated>
	<author>
		<name>Daniel A. Steffen</name>
	</author>
	<content type="html">On Wed, Nov 18, 2009 at 20:20, Tom Goddard &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26420528&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;goddard@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt; Are multi-column menus and colored backgrounds for menu entries
&lt;br&gt;&amp;gt; supported in Cocoa Aqua Tk (8.5.8 backport or 8.6b1)?
&lt;br&gt;&lt;br&gt;no, only features directly supported by NSMenuItem (images, colored
&lt;br&gt;text foreground, fonts etc) are supported. Anything else would require
&lt;br&gt;a custom NSView in the NSMenuItem:
&lt;br&gt;&amp;nbsp; &amp;nbsp; &lt;a href=&quot;http://developer.apple.com/mac/library/documentation/Cocoa/Conceptual/MenuList/Articles/ViewsInMenuItems.htm&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://developer.apple.com/mac/library/documentation/Cocoa/Conceptual/MenuList/Articles/ViewsInMenuItems.htm&lt;/a&gt;&lt;br&gt;it might be worth investigating whether Tk could provide a facility to
&lt;br&gt;allow extensions to specify such custom views...
&lt;br&gt;&lt;br&gt;Cheers,
&lt;br&gt;&lt;br&gt;Daniel
&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
&lt;br&gt;trial. Simplify your report design, integration and deployment - and focus on 
&lt;br&gt;what you do best, core application coding. Discover what's new with
&lt;br&gt;Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Tcl-mac mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26420528&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;tcl-mac@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/tcl-mac&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/tcl-mac&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Multi-column-menus-in-Cocoa-Tk-tp26420309p26420528.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26420309</id>
	<title>Multi-column menus in Cocoa Tk</title>
	<published>2009-11-18T20:20:27Z</published>
	<updated>2009-11-18T20:20:27Z</updated>
	<author>
		<name>Tom Goddard</name>
	</author>
	<content type="html">Are multi-column menus and colored backgrounds for menu entries 
&lt;br&gt;supported in Cocoa Aqua Tk (8.5.8 backport or 8.6b1)? &amp;nbsp;I have tried with 
&lt;br&gt;the 8.5.8 backport of Cocoa Aqua Tk but neither of these features work. &amp;nbsp;
&lt;br&gt;Both features do work in the Carbon Aqua Tk in 8.5.6 if the following 
&lt;br&gt;magic is used before creating the menus
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; set ::tk::mac::useCustomMDEF 1
&lt;br&gt;&lt;br&gt;Thanks.
&lt;br&gt;&lt;br&gt;&amp;nbsp; Tom Goddard
&lt;br&gt;&amp;nbsp; UCSF Chimera molecular graphics developer
&lt;br&gt;&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
&lt;br&gt;trial. Simplify your report design, integration and deployment - and focus on 
&lt;br&gt;what you do best, core application coding. Discover what's new with
&lt;br&gt;Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Tcl-mac mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26420309&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;tcl-mac@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/tcl-mac&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/tcl-mac&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Multi-column-menus-in-Cocoa-Tk-tp26420309p26420309.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26419560</id>
	<title>Re: NSDragging protocol/&quot;sender&quot; and Tk_Window</title>
	<published>2009-11-18T18:49:34Z</published>
	<updated>2009-11-18T18:49:34Z</updated>
	<author>
		<name>Kevin Walzer-5</name>
	</author>
	<content type="html">On 11/18/09 12:02 AM, Kevin Walzer wrote:
&lt;br&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Based on what I'm observing with &amp;quot;puts&amp;quot; and other debugging statements,
&lt;br&gt;&amp;gt; it appears that registering drag types always works, but when the widget
&lt;br&gt;&amp;gt; isn't accepting drops, the drop events aren't &amp;quot;firing.&amp;quot; This may be
&lt;br&gt;&amp;gt; getting into &amp;nbsp;Cocoa/Tk event loop integration; I really can't figure out
&lt;br&gt;&amp;gt; why this stuff works in certain contexts and not others.
&lt;br&gt;&lt;br&gt;&lt;br&gt;Further progress to report...
&lt;br&gt;&lt;br&gt;I have gotten a sourced script to work. I can register a toplevel window 
&lt;br&gt;as a drag target, bind enter, leave and drop events to the window, and 
&lt;br&gt;get output from the Tk widget. That's the basic foundation I need. I 
&lt;br&gt;haven't yet figured out how to obtain the dragged data from the 
&lt;br&gt;clipboard to do something with it, but that will come.
&lt;br&gt;&lt;br&gt;It appears that only a toplevel can be registered as a drop target. 
&lt;br&gt;Calling the Cocoa methods on child widgets doesn't work, for some 
&lt;br&gt;reason. So I will most likely be implementing Daniel's suggestion to 
&lt;br&gt;base the drag target on a toplevel window and then implement some 
&lt;br&gt;cursor-tracking logic for specific callbacks.
&lt;br&gt;&lt;br&gt;One thing I will not be doing is making Tk widgets themselves drag 
&lt;br&gt;sources, i.e. dragging text from a Tk text widget to another app. While 
&lt;br&gt;I've made some progress, I've run into several conflicts. For instance, 
&lt;br&gt;the Cocoa API's to enable dragging of text conflict with the Tk API's 
&lt;br&gt;for selecting text. If I register a text widget as drag/drop enabled, 
&lt;br&gt;&amp;lt;B1-Motion&amp;gt; both selects the text and displays a drag icon, as if I were 
&lt;br&gt;dragging the text to another widget. I don't know how to resolve this 
&lt;br&gt;conflict, i.e. tell Tk the difference between dragging the mouse to 
&lt;br&gt;select the text and dragging the mouse to drag the text. I think this 
&lt;br&gt;may involve too much mucking around with Tk internals to get right. As a 
&lt;br&gt;result, I won't implement this feature.
&lt;br&gt;&lt;br&gt;Given I'm making progress, I'll hold off on posting some code to play 
&lt;br&gt;with until it's further along.
&lt;br&gt;&lt;br&gt;--Kevin
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Kevin Walzer
&lt;br&gt;Code by Kevin
&lt;br&gt;&lt;a href=&quot;http://www.codebykevin.com&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.codebykevin.com&lt;/a&gt;&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
&lt;br&gt;trial. Simplify your report design, integration and deployment - and focus on 
&lt;br&gt;what you do best, core application coding. Discover what's new with
&lt;br&gt;Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Tcl-mac mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26419560&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;tcl-mac@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/tcl-mac&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/tcl-mac&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/NSDragging-protocol-%22sender%22-and-Tk_Window-tp26338495p26419560.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26402593</id>
	<title>Re: NSDragging protocol/&quot;sender&quot; and Tk_Window</title>
	<published>2009-11-17T21:02:37Z</published>
	<updated>2009-11-17T21:02:37Z</updated>
	<author>
		<name>Kevin Walzer-5</name>
	</author>
	<content type="html">On 11/17/09 8:19 AM, Kevin Walzer wrote:
&lt;br&gt;&lt;br&gt;&amp;gt; Is there anything that could account for the difference between the
&lt;br&gt;&amp;gt; behavior here? I've never seen a case where commands in an interactive
&lt;br&gt;&amp;gt; session and a sourced script produced such different behavior.
&lt;br&gt;&lt;br&gt;Linus Nyberg suggested, off-list, that the issue might be that running 
&lt;br&gt;the commands interactively in Terminal causes the event-loop to update, 
&lt;br&gt;hence making the widget a valid drop target that responds to drags. He 
&lt;br&gt;suggested adding &amp;quot;update&amp;quot; commands to the full script that Wish is 
&lt;br&gt;sourcing.
&lt;br&gt;&lt;br&gt;That didn't work, at least not in Terminal. But sourcing the script in 
&lt;br&gt;Wish's built-in console, and running the commands interactively there, 
&lt;br&gt;did work as expected both times.
&lt;br&gt;&lt;br&gt;On yet another angle, saving the script as &amp;quot;AppMain.tcl&amp;quot; and launching 
&lt;br&gt;it from a standalone build of Wish doesn't work either (the window 
&lt;br&gt;doesn't respond to dropped files after being registered for drag types).
&lt;br&gt;&lt;br&gt;Based on what I'm observing with &amp;quot;puts&amp;quot; and other debugging statements, 
&lt;br&gt;it appears that registering drag types always works, but when the widget 
&lt;br&gt;isn't accepting drops, the drop events aren't &amp;quot;firing.&amp;quot; This may be 
&lt;br&gt;getting into &amp;nbsp;Cocoa/Tk event loop integration; I really can't figure out 
&lt;br&gt;why this stuff works in certain contexts and not others.
&lt;br&gt;&lt;br&gt;In the next day or so I'll clean up my code and post it for others to 
&lt;br&gt;build and hack on, so perhaps another set of eyes can help here...
&lt;br&gt;&lt;br&gt;--Kevin
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Kevin Walzer
&lt;br&gt;Code by Kevin
&lt;br&gt;&lt;a href=&quot;http://www.codebykevin.com&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.codebykevin.com&lt;/a&gt;&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
&lt;br&gt;trial. Simplify your report design, integration and deployment - and focus on 
&lt;br&gt;what you do best, core application coding. Discover what's new with
&lt;br&gt;Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Tcl-mac mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26402593&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;tcl-mac@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/tcl-mac&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/tcl-mac&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/NSDragging-protocol-%22sender%22-and-Tk_Window-tp26338495p26402593.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26389801</id>
	<title>Re: NSDragging protocol/&quot;sender&quot; and Tk_Window</title>
	<published>2009-11-17T05:19:40Z</published>
	<updated>2009-11-17T05:19:40Z</updated>
	<author>
		<name>Kevin Walzer-5</name>
	</author>
	<content type="html">On 11/16/09 9:31 PM, Kevin Walzer wrote:
&lt;br&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I've gotten a Tk window to respond to drags of files, URL's and strings
&lt;br&gt;&amp;gt; by printing a message to stdout. I've also been able to generate a
&lt;br&gt;&amp;gt; virtual event for when the drag area is entered. I haven't gotten the
&lt;br&gt;&amp;gt; cursor to change yet, but that may not be a crucial thing.
&lt;br&gt;&lt;br&gt;Some additional notes:
&lt;br&gt;&lt;br&gt;Typing these commands in an interactive session of Wish in Terminal 
&lt;br&gt;produces the expected drag/drop behavior:
&lt;br&gt;&lt;br&gt;package require MacDND
&lt;br&gt;&lt;br&gt;pack [label .f -text &amp;quot;Foo&amp;quot; -bg red] -fill both -expand yes
&lt;br&gt;&lt;br&gt;::macdnd::registerdragwidget .f
&lt;br&gt;&lt;br&gt;The .f label accepts the drag. (I can tell this because the dragged 
&lt;br&gt;image disappears when I drop it over the widget; otherwise it would snap 
&lt;br&gt;back to its original location.)
&lt;br&gt;&lt;br&gt;Putting the same commands into a script, &amp;quot;drag.tcl,&amp;quot; which is then 
&lt;br&gt;sourced by Wish, does not appear to implement the drag/drop behavior. 
&lt;br&gt;The drag image snaps back to its original location.
&lt;br&gt;&lt;br&gt;Is there anything that could account for the difference between the 
&lt;br&gt;behavior here? I've never seen a case where commands in an interactive 
&lt;br&gt;session and a sourced script produced such different behavior.
&lt;br&gt;&lt;br&gt;--Kevin
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Kevin Walzer
&lt;br&gt;Code by Kevin
&lt;br&gt;&lt;a href=&quot;http://www.codebykevin.com&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.codebykevin.com&lt;/a&gt;&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
&lt;br&gt;trial. Simplify your report design, integration and deployment - and focus on 
&lt;br&gt;what you do best, core application coding. Discover what's new with
&lt;br&gt;Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Tcl-mac mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26389801&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;tcl-mac@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/tcl-mac&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/tcl-mac&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/NSDragging-protocol-%22sender%22-and-Tk_Window-tp26338495p26389801.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26384221</id>
	<title>Re: NSDragging protocol/&quot;sender&quot; and Tk_Window</title>
	<published>2009-11-16T20:21:50Z</published>
	<updated>2009-11-16T20:21:50Z</updated>
	<author>
		<name>Barry Skidmore-3</name>
	</author>
	<content type="html">Kevin:
&lt;br&gt;&lt;br&gt;I suggested to Daniel that a function similar to tk::mac::opendocument &amp;nbsp;
&lt;br&gt;would be sufficient for drag and drop.
&lt;br&gt;&lt;br&gt;in this way anything that is dragged goes to the defined proc and the &amp;nbsp;
&lt;br&gt;tcl programmer then handles the details.
&lt;br&gt;&lt;br&gt;i know for certain that it would be a great singular improvement in tk &amp;nbsp;
&lt;br&gt;for the mac and would suffice for all of my needs.
&lt;br&gt;&lt;br&gt;im not much of a cocoa programmer but if you followed tgat route for &amp;nbsp;
&lt;br&gt;an initial release it may make your life easier and provide a grealy &amp;nbsp;
&lt;br&gt;appreciated and much needed stopgap.
&lt;br&gt;&lt;br&gt;thanks.
&lt;br&gt;&lt;br&gt;&lt;br&gt;Sent from my iPhone
&lt;br&gt;&lt;br&gt;On Nov 16, 2009, at 6:31 PM, Kevin Walzer &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26384221&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;kw@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Hi Daniel,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; On 11/16/09 7:16 PM, Kevin Walzer wrote:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; In any event, I will look into the subview idea and adding this to
&lt;br&gt;&amp;gt;&amp;gt; specific widgets. If I can get this working, then that may solve my
&lt;br&gt;&amp;gt;&amp;gt; problem.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; By way of follow-up, I'm happy to report some progress.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I've gotten a Tk window to respond to drags of files, URL's and &amp;nbsp;
&lt;br&gt;&amp;gt; strings
&lt;br&gt;&amp;gt; by printing a message to stdout. I've also been able to generate a
&lt;br&gt;&amp;gt; virtual event for when the drag area is entered. I haven't gotten the
&lt;br&gt;&amp;gt; cursor to change yet, but that may not be a crucial thing.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Your &amp;nbsp;suggestion on adding a subview proved to be very helpful. I'm
&lt;br&gt;&amp;gt; still working out the details of the subview. For instance, when I
&lt;br&gt;&amp;gt; register two separate child widgets of a toplevel as drag widgets, the
&lt;br&gt;&amp;gt; second widget seems to accept the drags, but the first widget no &amp;nbsp;
&lt;br&gt;&amp;gt; longer
&lt;br&gt;&amp;gt; does.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I've also gotten this to work by using two functions that are probably
&lt;br&gt;&amp;gt; no-no's: TkWindow and &amp;nbsp;TkMacOSXGetTkWindow. I pulled
&lt;br&gt;&amp;gt; TkMacOSXGetTkWindow from its original file and re-implemented it in my
&lt;br&gt;&amp;gt; own: this is a helpful function for getting the corresponding Tk &amp;nbsp;
&lt;br&gt;&amp;gt; window
&lt;br&gt;&amp;gt; for an NSWindow.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I understand that TkWindow is also a private function, but you used it
&lt;br&gt;&amp;gt; in the tkwebview extension, and it seems especially useful here.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; At the very least, I'm happy to be finally making some real &amp;nbsp;
&lt;br&gt;&amp;gt; progress, so
&lt;br&gt;&amp;gt; thanks again for the suggestions. I still have a ways to go, but we &amp;nbsp;
&lt;br&gt;&amp;gt; are
&lt;br&gt;&amp;gt; finally getting somewhere.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; --Kevin
&lt;br&gt;&amp;gt; -- 
&lt;br&gt;&amp;gt; Kevin Walzer
&lt;br&gt;&amp;gt; Code by Kevin
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://www.codebykevin.com&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.codebykevin.com&lt;/a&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; --- 
&lt;br&gt;&amp;gt; --- 
&lt;br&gt;&amp;gt; --- 
&lt;br&gt;&amp;gt; ---------------------------------------------------------------------
&lt;br&gt;&amp;gt; Let Crystal Reports handle the reporting - Free Crystal Reports 2008 &amp;nbsp;
&lt;br&gt;&amp;gt; 30-Day
&lt;br&gt;&amp;gt; trial. Simplify your report design, integration and deployment - and &amp;nbsp;
&lt;br&gt;&amp;gt; focus on
&lt;br&gt;&amp;gt; what you do best, core application coding. Discover what's new with
&lt;br&gt;&amp;gt; Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br&gt;&amp;gt; _______________________________________________
&lt;br&gt;&amp;gt; Tcl-mac mailing list
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26384221&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;tcl-mac@...&lt;/a&gt;
&lt;br&gt;&amp;gt; &lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/tcl-mac&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/tcl-mac&lt;/a&gt;&lt;/div&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
&lt;br&gt;trial. Simplify your report design, integration and deployment - and focus on 
&lt;br&gt;what you do best, core application coding. Discover what's new with
&lt;br&gt;Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Tcl-mac mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26384221&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;tcl-mac@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/tcl-mac&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/tcl-mac&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/NSDragging-protocol-%22sender%22-and-Tk_Window-tp26338495p26384221.html" />
</entry>

</feed>
