links to this page:    
View this PageEdit this PageUploads to this PageHistory of this PageTop of the SwikiRecent ChangesSearch the SwikiHelp Guide
Last updated at 4:48 pm UTC on 14 July 2022
subclass of Object. The only subclass in the standard image is ClassDescription.

 Object subclass: #Behavior
 	instanceVariableNames: 'superclass methodDict format'
 	classVariableNames: 'ObsoleteSubclasses'
 	poolDictionaries: ''
 	category: 'Kernel-Classes'

A link to a MethodDictionary is kept.

 aBehavior selectors
answers with a set of the message selectors in the method dictionary.

 aBehavior allSelectors
does the same but includes the selectors of the superclasses.

 aBehavior allInstances
answers the set of all instances of the receiver

From the class comment:
My instances describe the behavior of other objects. I provide the minimum state necessary for compiling methods, and creating and running instances. Most objects are created as instances of the more fully supported subclass, Class, but I am a good starting point for providing instance-specific behavior (as in Metaclass).

Behavior is also used by code which creates objects which are not normal instances of a Class, such as Prototypes.

 createGetterFor: aName

	| code |
	code := '{1}\\	^ {1}' withCRs format: {aName}.
	self compile: code classified: #accessing notifying: nil.