home *** CD-ROM | disk | FTP | other *** search
- Path: 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
-
- 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.
-
-