🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.mac.oop.macapp3
Article #379

Bug in AdLib handlers

#379
From: ICEC Remote Design Hf,Reykjavik,...
Date: Thu, 28 Jan 1993 09:15
13 lines
992 bytes
When you create handler that sends menu command to window with given id
the window won't get the menu command because of bug in UHandlerBehavior.cp.
 
The bug is in the method TEventHandler* THandlerBehavior::getTarget(void* data)
in the section "case kWindowIDTarget:" in line
if (window && window->IsShown() &&
    window->fIdentifier == ((handlerData*)   data)->targetParam2)
                                                    ^^^^^^^^^^^^
this should by targetParam1 that is
    window->fIdentifier == ((handlerData*)   data)->targetParam1)
 
Viktor.
 
Technical Details
Message-ID: <728212925.6388369@AppleLink.Apple.COM>
Path: arc1-ca.pugleaf.net!sparky!uunet!pageworks.com!world!eff!sol.ctr.columbia.edu!spool.mu.edu!agate!stanford.edu!apple!applelink.apple.com

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!pageworks.com!world!eff!sol.ctr.columbia.edu!spool.mu.edu!agate!stanford.edu!apple!applelink.apple.com
From: ICE0003@AppleLink.Apple.COM (ICEC Remote Design Hf,Reykjavik,IVC)
Newsgroups: comp.sys.mac.oop.macapp3
Subject: Bug in AdLib handlers
Message-ID: <728212925.6388369@AppleLink.Apple.COM>
Date: 28 Jan 93 09:15:00 GMT
Sender: daemon@Apple.COM
Organization: AppleLink Gateway
Lines: 13