home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / sys / mac / oop / macapp3 / 643 < prev    next >
Encoding:
Internet Message Format  |  1993-01-28  |  969 b 

  1. Path: sparky!uunet!pageworks.com!world!eff!sol.ctr.columbia.edu!spool.mu.edu!agate!stanford.edu!apple!applelink.apple.com
  2. From: ICE0003@AppleLink.Apple.COM (ICEC Remote Design Hf,Reykjavik,IVC)
  3. Newsgroups: comp.sys.mac.oop.macapp3
  4. Subject: Bug in AdLib handlers
  5. Message-ID: <728212925.6388369@AppleLink.Apple.COM>
  6. Date: 28 Jan 93 09:15:00 GMT
  7. Sender: daemon@Apple.COM
  8. Organization: AppleLink Gateway
  9. Lines: 13
  10.  
  11. When you create handler that sends menu command to window with given id
  12. the window won't get the menu command because of bug in UHandlerBehavior.cp.
  13.  
  14. The bug is in the method TEventHandler* THandlerBehavior::getTarget(void* data)
  15. in the section "case kWindowIDTarget:" in line
  16. if (window && window->IsShown() &&
  17.     window->fIdentifier == ((handlerData*)   data)->targetParam2)
  18.                                                     ^^^^^^^^^^^^
  19. this should by targetParam1 that is
  20.     window->fIdentifier == ((handlerData*)   data)->targetParam1)
  21.  
  22. Viktor.
  23.  
  24.