Java: Cocoa Subclasses, Delegates; A Taste of the I/O Package

Coming from his background in Java development, the concept of using delegates and categories, as opposed to subclassing, was a bit foreign to Marcus Zarra. In Java subclassing, nearly everything was quite common. So common in fact, that Sun provided generic subclasses in quite a few cases. Objective-C and Cocoa, however, have a different approach. Marcus walks you through the different approaches used in Objective-C programming. Also: the Java platform includes a number of packages that are concerned with the movement of data into and out of programs. These packages differ in the kinds of abstractions they provide for dealing with I/O (input/output). This chapter covers primarily the stream-based model of the package.


  1. 2005-11-07 12:31 am
  2. 2005-11-07 3:35 am
  3. 2005-11-08 5:48 am