[comp.sys.mac.programmer] FilterProcs and global variables--I figured out a solution.

sirkm@ssyx.ucsc.edu (Greg Anderson) (12/28/89)

In my last posting I was concerned about passing handles and all sorts
of useless things to a filterProc.  I just realized that the point is moot.

If my filterProc detects an event that would be difficult to interpret
(page up a scrolling field, for example), it simply returns with
itemHit = some very large & unique number.  My dialog handler takes care
of the details (since it has access to any global it might need).

  ___\    /___               Greg Anderson              ___\    /___ 
  \   \  /   /         Social Sciences Computing        \   \  /   /
   \  /\/\  /    University of California, Santa Cruz    \  /\/\  /
    \/    \/              sirkm@ssyx.ucsc.edu             \/    \/