On Jan 14, 2007, at 1:04 AM, Bernie wrote: > > On 14 Jan 2007, at 07:31, Bernie wrote: > >> I wonder if reusing Apple's event class constants for the target >> parm could lead to confusion for the user? Maybe introducing your >> target constants would be better, but named something like: >> >> _kCETargetWindow >> _kCETargetControl >> ... > > > Hm... if the user has to learn a new set of constants, they may as > well use fn CEInstallEvents( fn GetWindowEventTarget(w), @fn > MyWindowHandler, 0 ) instead, which de-clutterises even further. > > Bernie IMO, any new set of utilities being proposed for FB needs to minimize new constants that need to be learned. There are plenty of new constants to learn already (changing to CE) with the class/kind pairs. Clearly, one set of code like the CE Utils is not going to please everyone. Some will want more simplification (i.e. hide all the details from me) while others will be more inclined the other direction. It is fine for individuals to tune their own code as Max has done in the example but I think Bernie's code already (again, IMO) hits the right balance of simplicity, reusability and efficiency without adding more complexity and memorization of new constants (beyond the new ones already required by Apple's technology). Brian S.