Platforms to show: All Mac Windows Linux Cross-Platform

Back to NSAutoreleasePoolMBS class.

NSAutoreleasePoolMBS.Constructor

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Cocoa MBS Main Plugin 8.5 ✅ Yes ❌ No ❌ No ✅ Yes All
The constructor to create a new Autorelease Pool.
Example
// Cleanup memory for Cocoa objects

Sub Action() // in Timer
static LastPool as NSAutoreleasePoolMBS = nil
static CurrentPool as NSAutoreleasePoolMBS = nil

LastPool = CurrentPool
CurrentPool = new NSAutoreleasePoolMBS
End Sub

The example code above is not needed in Xojo 2009r4 and above as the runtime does it automatically for you.

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


The biggest plugin in space...