TTMSFNCMenuService Class
Platform-specific service that manages the active menu stack, runs the event loop, and coordinates opening and closing of popup menu forms.
API unit family: TMSFNCPopupMenu
Inherits from: TInterfacedObject
Implements: ITMSFNCMenuService
Syntax
TTMSFNCMenuService = class(TInterfacedObject, ITMSFNCMenuService)
Methods
| Name | Description |
|---|---|
| CloseMenuForms | Closes all currently registered popup menu forms and clears the menu stack. |
| MenuLoopEvent | Processes a single macOS event dispatched through the menu service hook; sets CancelIdle or CancelDefaultAction to suppress default handling. |
| RegisterMenuForm | Registers a popup form with the service so it is tracked as part of the open menu stack. |
| StartMenuLoop | Starts the platform event loop for the specified menu view, blocking until the menu closes. |
| UnRegisterMenuForm | Removes a previously registered popup form from the open menu stack. |