🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: comp.sys.mac.oop.macapp3
1 messages
1 total messages Started by ICEC Remote Design Hf,Reykjavik,... Thu, 28 Jan 1993 09:15
Bug in AdLib handlers
#379
Author: 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.
 
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads