Home THE HYPERCARD CENTER

HyperTalk Reference
Home » HyperTalk Reference » HyperTalk basics

Note: This is a work in progress and will be formatting errors. Read more about the project on the home page.

The message-passing order

What happens if an object that receives a message doesn’t handle it?

In this case, HyperCard passes the message to other objects and searches their scripts for a message handler that matches the current message. The order in which HyperCard passes a message to objects is called the message-passing order or the message-passing path.

Initially, HyperCard sends messages to a specific button or field or to the current card. If a button or field doesn’t handle the message, it goes on to the current card. From the current card, the message goes to the following objects, in order:

  • the current background
  • the current stack
  • the stack script of the Home stack
  • HyperCard itself

Placeholders

Related Topics

« Handling messages | HyperTalk Reference | Writing message handlers »


Version 0.7b1 (March 24, 2022)

Made with Macintosh

Switch to Modern View

Home
The HyperCard Center
HyperTalk Reference
Home » HyperTalk Reference » HyperTalk basics

Note: This is a work in progress and will be formatting errors. Read more about the project on the home page.

The message-passing order

What happens if an object that receives a message doesn’t handle it?

In this case, HyperCard passes the message to other objects and searches their scripts for a message handler that matches the current message. The order in which HyperCard passes a message to objects is called the message-passing order or the message-passing path.

Initially, HyperCard sends messages to a specific button or field or to the current card. If a button or field doesn’t handle the message, it goes on to the current card. From the current card, the message goes to the following objects, in order:


Placeholders

Related Topics

« Handling messages | HyperTalk Reference | Writing message handlers »

Version 0.7b1 (March 24, 2022)

Made with Macintosh

Switch to Retro View