Another Reason Not to Clone Desktop Frameworks

It’s tempting to claim desktop frameworks since they come with 20 years of experience built in.  But 20 years of experience also means 20 years of baggage. When Apple created the UIKit (AppKit for the iPhone), even they didn’t clone Cocoa exactly:

One of the biggest differences is the extensive use of properties throughout the UIKit class declarations. Properties were introduced to Mac OS X in version 10.5 and thus came along after the creation of many classes in the AppKit framework. Rather than simply mimic the same getter and setter methods in AppKit, UIKit employs properties as a way to simplify the class interfaces. For information about properties, see Properties in The Objective-C 2.0 Programming Language.

From iPhone Getting Started Docs

 

Discussion Area - Leave a Comment