Article # 582, added by Geoworks, historical record
| first |
previous |
index |
next |
last |
How do I send messages to an object in Swat?
Q. I need to have my app run the handler for MSG_META_TRANSPARENT_DETACH. However, I can't (or more likely shouldn't) send this from within the application, so I was wondering if there was any way for me to send it from Swat. A. omfq MSG_META_TRANSPARENT_DETACH *MyApp The command "omfq" stands for ObjMessageForceQueue and calls ObjMessage with the flag MF_FORCE_QUEUE to force the message to be placed on the object's message queue. When control is returned to the emulator (i.e. you type "c" in Swat) the message will be processed.