Advertisement

Properties

  • Scott Knaster
  • Waqar Malik
  • Mark Dalrymple

Abstract

Remember back in the mists at the dawn of time when we wrote accessor methods for our instance variables? We wrote a lot of boilerplate code, creating both a -setBlah method to set the object’s blah attribute (obviously) and a -blah method to retrieve it. If the attribute is an object, we needed to retain the new one and release the old one. Utilities are out there that will turn your class definition into method declarations and definitions that you can paste into your files. But still, writing accessor methods is a lot of mind-numbing work that can better be applied to doing the cool stuff that’s unique to your program.

Keywords

Instance Variable Compiler Directive Method Declaration Owned Object Generate Source Code 
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