PleaseReleaseMe.app
SHL Object Technology Center
e-mail: otccore@bou.shl.com

Overview

This example demonstrates the basic characteristics of the new memory allocation scheme supported by the new root class NSObject found in the Foundation classes (NSObject will eventually replace Object).  This new allocation scheme is basically a reference counting mechanism that allows for retaining and releasing objects.  AutoreleasePools provide a 'scoping' within which allocation and deallocation can occur.  See Foundation documentation for more detail.

NEXTSTEP 3.2  EOF Beta

Program Organization

Important Files
	
AppController.[hm] provides action cover methods for NSObject's allocation management methods.
MyObject.[hm] is the class that will be allocated and managed.

Notes	
In order to more obviously demonstrate the concept of autorelease pools, this app does not use the EO beta class EOApplication as its Application class.  EOApplication provides a global autorelease pool emptied at the beginning of each event loop.

Revision History 

June 94	Version 1.0.