Thread View: comp.sys.mac.oop.macapp3
1 messages
1 total messages
Started by 3M, Ran Bedekar,PRT
Tue, 15 Dec 1992 15:01
Re: Adlib Questions
Author: 3M, Ran Bedekar,PRT
Date: Tue, 15 Dec 1992 15:01
Date: Tue, 15 Dec 1992 15:01
27 lines
1789 bytes
1789 bytes
Chip, The 'BHVR' resource that Ad Lib creates is pretty simple. It's a count (2 bytes) followed by one or more behaviors. TBehaviorApp::IBehaviorApp() (source provided with Ad Lib) converts each resource in your app to a stream and reads the behaviors. If there are multiple behaviors in the resource, they will all be added to the application object. Likewise, if there are multiple BHVR resources, they all are added to the application. Having said all of that, I don't think that it is your problem. The 'BHVR' resource is a general purpose mechanism to add any kind of behaviors to your application object. For your prototyping, you are adding THandlerBehaviors to objects by using the 'Handlers' window in Ad Lib. There is no reason why multiple handler behaviors will not work, if they are set up properly. I suspect that one of your handlers is blocking a message by not forwarding it. For each message that you provide a handler for (e.g., Key Down or Setup Menus) you can specify a number of actions (e.g., Send Event or Enable Menu) to be performed. Normally, the last action should be 'Forward Message' to 'Self'. This will let the object that owns the behavior, and the object's other behaviors, have a shot at the message. If you don't forward the message, it will not be propagated. This is analogous to calling the inherited member function when overriding a class. Regards, Nick Nallick
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