Auto-Release Pools w/ Using (Cocoa)

The standard Visual Basic Using statement has been extended for the Cocoa platform to allow the AutoReleasePool keyword to be used in lieu of another expression. This creates a new Auto-Release Pool for this thread and cleans it up at the end of the using statement.

Using AutoReleasePool
  NSApplicationMain(argc, argv)
End Using

Refer to the Auto-Release Pool topic in the Cocoa platform section for more details.

Cocoa Only

The Using AutoReleasePool syntax is relevant and available on the Cocoa platform only.

See Also