__nexus_ide_app_register__
plot · scripts/plot/util/__nexus_ide_app_register__.m
__NEXUS_IDE_APP_REGISTER__ Register the active IDE app object (nexus#2357).
__nexus_ide_app_register__ (obj)
obj = __nexus_ide_app_register__ ()
obj = __nexus_ide_app_register__ (obj)
Stores OBJ on groot appdata as "__nexus_ide_app_obj__" so the side-channel
handlers for ide:run_trigger / ide:run_stop (and #2358 nexus.app) share one
active instance. When OBJ has a SetObservable STATUS property, a PostSet
listener emits status_update OSC frames (nexus-ide#75 / side-channel.md).
With no input, returns the currently registered object, or [] when none.
Passing [] clears the registration and removes the STATUS listener.
Behaviour decisions (MATLAB R2026a App Designer / Desktop app parity):
* Registration is process-wide on groot, not per-figure.
* STATUS must be SetObservable for live status_update; a plain STATUS
property still gets an initial emit when present, but later assigns
do not notify (same as MATLAB listeners requiring SetObservable).
* Clearing with [] does not call STOP or change STATUS.