Advertisement

Object Initialization

  • Mark Dalrymple
  • Scott Knaster

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

© Mark Dalrymple and Scott Knaster 2009

Authors and Affiliations

  • Mark Dalrymple
  • Scott Knaster

There are no affiliations available

Personalised recommendations