TweetFollow Us on Twitter

MacTech Article: 2703 Developer to Developer

Developer to Developer: Extending Classes with Categories

by Boisy G.Pitre
Mar, 2011 Issue


Article Synopsis

As an object-oriented language, Objective-C gives developers the ability to extend a class through the classical object-oriented model of inheritance. Inheritance is a time-tested means of bringing additional functionality to our classes, and most of the time, it is the appropriate and expedient choice. However, Objective-C has another, and some might say more convenient, technique of extending a class. In this month's Developer to Developer, we'll explore the concept of categories and how we can use this alternative to subclassing to add and extend our own classes.




This article was published in the 27.03 issue of MacTech Magazine. Subscribers saw this article in the print magazine when it was first published. MacTech provides its readers with valuable information each and every month, but even if it only solves one problem for you a year, it's more than paid for itself.

Subscribe today with a special RISK FREE trial subscription ... and get the back issues at the MacTech Store, or the new MacTech CD with the history of the magazine all in one convenient place.

 

Community Search:
MacTech Search:

Software Updates via MacUpdate

Latest Forum Discussions

See All


Price Scanner via MacPrices.net


Jobs Board

All contents are Copyright 1984-2011 by Xplain Corporation. All rights reserved. Theme designed by Icreon.