ftp.nice.ch/pub/next/developer/objc/EOF/OTC_EOFBetaExamples.1.0.bs.tar.gz#/OTC_EOFBetaExamples_V1.0/NSFoundation/MemoryAllocation

AppController.h
[View AppController.h] 
AppController.m
[View AppController.m] 
English.lproj/
 
Makefile
 
Makefile.postamble
 
Makefile.preamble
 
MyObject.h
[View MyObject.h] 
MyObject.m
[View MyObject.m] 
NSObject-IBFixes.m
[View NSObject-IBFixes.m] 
PB.gdbinit
 
PB.project
 
PleaseReleaseMe.iconheader
 
PleaseReleaseMe_main.m
[View PleaseReleaseMe_main.m] 
README.rtf
[View README.rtf] 
ScrollViewExtensions.h
[View ScrollViewExtensions.h] 
ScrollViewExtensions.m
[View ScrollViewExtensions.m] 

README.rtf

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.

These are the contents of the former NiCE NeXT User Group NeXTSTEP/OpenStep software archive, currently hosted by Netfuture.ch.