[PD-dev] no key commands in 0.37/MacOS X
Adam Lindsay
atl at comp.lancs.ac.uk
Wed Sep 17 20:19:19 CEST 2003
Hi folks,
AFAIK, the difference lies in the different *builds* of Tcl/Tk on the Mac.
Some builds (earlier ones from Sourceforge, the later ones I propagated)
included a patch that made implicit key bindings possible. Current Tcl/Tk
builds on SF apparently don't include this patch, and so Hans and Jamie
don't get this friendly side-effect of the patch.
The question is now if this replaced code (around line 913 in pd.tk) is
sufficient to fix their case:
if {$pd_nt == 2} {
bind $name.c <Button-2> {pdtk_canvas_click %W %x %y %b 8}
bind $name.c <Control-Button> {pdtk_canvas_click %W %x %y %b 8}
bind $name.c <Meta-Key> {pdtk_canvas_ctrlkey %W %K 0}
bind $name.c <Meta-Shift-Key> {pdtk_canvas_ctrlkey %W %K 1}
} else {
bind $name.c <Button-3> {pdtk_canvas_click %W %x %y %b 8}
bind $name.c <Control-Button> {pdtk_canvas_click %W %x %y %b 2}
bind $name.c <Control-Key> {pdtk_canvas_ctrlkey %W %K 0}
bind $name.c <Control-Shift-Key> {pdtk_canvas_ctrlkey %W %K 1}
}
...if it is, great! If not, it may be that MacTclTk still doesn't support
these explicit-style bindings yet. (I'm not sure. I haven't been tracking
that list so closely lately.)
Cheers,
adam
Miller Puckette said this at Wed, 17 Sep 2003 10:43:30 -0700:
>Hi all,
>
>I just tried it (pd 0.37 test 11; tcl 8.4; not sure which minor version
>number I have) and it worked fine. not sure where to look next....
>
>cheers
>Miller
>On Wed, Sep 17, 2003 at 12:39:19AM -0400, Hans-Christoph Steiner wrote:
>>
>> On Tuesday, Sep 16, 2003, at 19:50 America/New_York, tigital wrote:
>>
>> >On Tuesday, September 16, 2003, at 04:25 PM, Hans-Christoph Steiner
>> >wrote:
>> >
>> >>
>> >>So I have noticed in the past few releases of 0.37 (it may have
>> >>existed before, I just don't remember) that the key commands don't
>> >>work in MacOS X. I am currently using pd 0.37-test 11, Tcl/Tk 8.4.4,
>> >>and MacOS X 10.2.6. It doesn't work for me with either Ctrl or
>> >>Cmd... and it certainly slows you down when you have to go to that
>> >>'Put' menu all of the time.
>> >>
>> >>Is anyone else having this problem?
>> >
>> >...well, ctrl works for me still...and Cmd used to, but hasn't in
>> >0.37test versions (maybe it died before that? I don't remember when I
>> >first noticed it's loss)...haven't taken the time to investigate,
>> >unfortunately...
>> >
>>
>> I am in the same state with Tcl/Tk 8.4.2. IIRC, I think the Cmd code
>> was in the CVS devel_0-36 version but it doesn't look like it made it
>> into 0.37 yet. Or maybe something else changed...
>>
>> IIRC
>>
>>
>> _______________________________________________
>> PD-dev mailing list
>> PD-dev at iem.at
>> http://iem.at/cgi-bin/mailman/listinfo/pd-dev
>
>_______________________________________________
>PD-dev mailing list
>PD-dev at iem.at
>http://iem.at/cgi-bin/mailman/listinfo/pd-dev
--
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Adam T. Lindsay atl at comp.lancs.ac.uk
Computing Dept, Lancaster University +44(0)1524/594.537
Lancaster, LA1 4YR, UK Fax:+44(0)1524/593.608
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
More information about the Pd-dev
mailing list