From p.dalgaard at biostat.ku.dk  Thu Oct 30 23:16:29 2003
From: p.dalgaard at biostat.ku.dk (Peter Dalgaard)
Date: Fri Oct 31 09:14:00 2003
Subject: [Rd] RAqua and AquaTclTk
In-Reply-To: <609EBBAA-0B22-11D8-B185-003065CC4CB8@mclink.it>
References: <609EBBAA-0B22-11D8-B185-003065CC4CB8@mclink.it>
Message-ID: <x23cdatlqa.fsf@biostat.ku.dk>

Stefano Iacus <jago@mclink.it> writes:

> I'm not sure I understand you. Can you drop me a couple of lines of
> code to see what R is expected to do?
> I think I can register something if I know how (I think I reasonable
> know the carbon event part, I don't know about the tktcl part of the
> history).

The thing is the triplet 

RTcl_setupProc
RTcl_eventProc
RTcl_checkProc

and subsequently

Tcl_CreateEventSource(RTcl_setupProc, RTcl_checkProc, 0);

in .../tcltk/src/tcltk.c

They currently call R_checkActivity, which on X11 returns a set of
file descriptors and then R_runHandlers(R_InputHandlers, readMask). If
aqua events also need to be checked and handled then you need to weave
that into the above routines, or set up a separate event source for
it. 

-- 
   O__  ---- Peter Dalgaard             Blegdamsvej 3  
  c/ /'_ --- Dept. of Biostatistics     2200 Cph. N   
 (*) \(*) -- University of Copenhagen   Denmark      Ph: (+45) 35327918
~~~~~~~~~~ - (p.dalgaard@biostat.ku.dk)             FAX: (+45) 35327907


[Rd] RAqua and AquaTclTk
Peter Dalgaard