Platforms to show: All Mac Windows Linux Cross-Platform

Back to CarbonApplicationEventsMBS class.

CarbonApplicationEventsMBS.ApplicationActivated

Type Topic Plugin Version macOS Windows Linux iOS Targets
event Carbon Events MBS MacCF Plugin 2.8 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Called whenever your application is activated.

In older versions this event was misspelled: ApplicationActived

Some examples using this event:

CarbonApplicationEventsMBS.ApplicationDeactivated

Type Topic Plugin Version macOS Windows Linux iOS Targets
event Carbon Events MBS MacCF Plugin 2.8 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Called whenever your application is deactivated.

In older versions this event was misspelled: ApplicationDeactived

Some examples using this event:

CarbonApplicationEventsMBS.ApplicationGetDockTileMenu as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
event Carbon Events MBS MacCF Plugin 3.0 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Called whenever the system likes to know which menu to display in the dock tile.

Create a menu using the MenuMBS class and return the handle property to this event as the result.

Some examples using this event:

CarbonApplicationEventsMBS.ApplicationHidden

Type Topic Plugin Version macOS Windows Linux iOS Targets
event Carbon Events MBS MacCF Plugin 3.3 ✅ Yes ❌ No ❌ No ❌ No Desktop only
The application was hidden.

Only used on Mac OS X 10.2 and newer.

Some examples using this event:

CarbonApplicationEventsMBS.ApplicationLaunched(ProcessSerial as memoryblock)

Type Topic Plugin Version macOS Windows Linux iOS Targets
event Carbon Events MBS MacCF Plugin 2.8 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Called whenever an application is launched.

ProcessSerial is a memoryblock to 8 bytes defining the process serial number.
ProcessSerial may be nil on very low memory.

Some examples using this event:

CarbonApplicationEventsMBS.ApplicationQuit

Type Topic Plugin Version macOS Windows Linux iOS Targets
event Carbon Events MBS MacCF Plugin 5.3 ✅ Yes ❌ No ❌ No ❌ No Desktop only
The application is requested to quit.

Current Xojo versions seems to handle this event before the plugin can get it, so currently this event does not fire. (tested with RB 5.5 and 2005r2)

Some examples using this event:

CarbonApplicationEventsMBS.ApplicationShown

Type Topic Plugin Version macOS Windows Linux iOS Targets
event Carbon Events MBS MacCF Plugin 3.3 ✅ Yes ❌ No ❌ No ❌ No Desktop only
The application was shown.

Only used on Mac OS X 10.2 and newer.

Some examples using this event:

CarbonApplicationEventsMBS.ApplicationSwitched(ProcessSerial as memoryblock)

Type Topic Plugin Version macOS Windows Linux iOS Targets
event Carbon Events MBS MacCF Plugin 2.8 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Called whenever the frontmost application is changed.
Example
sub ApplicationSwitched(ProcessSerial as memoryblock)
' This even works in built applications.
Var s as String
Var p as ProcessMBS

if ProcessSerial<>nil then
p=new ProcessMBS

p.GetProcess(ProcessSerial)
p.Update
s=p.Name
end if
List.InsertRow 0,"Application switched to "+s+"."
end sub

ProcessSerial is a memoryblock to 8 bytes defining the process serial number.
ProcessSerial may be nil on very low memory.

Some examples using this event:

CarbonApplicationEventsMBS.ApplicationSystemUIModeChanged(SystemUIMode as Integer)

Type Topic Plugin Version macOS Windows Linux iOS Targets
event Carbon Events MBS MacCF Plugin 3.3 ✅ Yes ❌ No ❌ No ❌ No Desktop only
The system UI mode changed.

Only used on Mac OS X 10.2 and newer.

CarbonApplicationEventsMBS.ApplicationTerminated(ProcessSerial as memoryblock)

Type Topic Plugin Version macOS Windows Linux iOS Targets
event Carbon Events MBS MacCF Plugin 2.8 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Called whenever an application quits.

ProcessSerial is a memoryblock to 8 bytes defining the process serial number.
ProcessSerial may be nil on very low memory.

Note that the process serial number may no longer be valid when this event is called.

Some examples using this event:

The items on this page are in the following plugins: MBS MacCF Plugin.


The biggest plugin in space...