Contents

init

Initializes a newly-allocated object.

Declaration

virtual bool init();

Return Value

true on success, false on failure.

Overview

Classes derived from OSObject must override the primary init method of their parent. In general most implementations call super::init() before doing local initialisation. If the superclass call fails then return false immediately. If the subclass encounters a failure then it should return false.

See Also

Miscellaneous