Advertisement

Object Initialization

  • Scott Knaster
  • Waqar Malik
  • Mark Dalrymple

Abstract

So far, we’ve created new objects in two different ways. The first way is [SomeClass new], and the second is [[SomeClass alloc] init]. These two techniques are equivalent, but the common Cocoa convention is to use alloc and init rather than new. Typically, Cocoa programmers use new as training wheels until they have enough background to be comfortable with alloc and init. It’s time for your training wheels to come off.

Keywords

Accessor Method Garbage Collection Memory Management Object Initialization Init Method 
These keywords were added by machine and not by the authors. This process is experimental and the keywords may be updated as the learning algorithm improves.

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

Copyright information

© Scott Knaster, Waqar Malik, Mark Dalrymple 2012

Authors and Affiliations

  • Scott Knaster
  • Waqar Malik
  • Mark Dalrymple

There are no affiliations available

Personalised recommendations