Other Features
Objective-C's features often allow for flexible, and often easy, solutions to programming issues.
- Delegating methods to other objects and remote invocation can be easily implemented using categories and message forwarding.
- Swizzling of the isa pointer allows for classes to change at runtime. Typically used for debugging where freed objects are swizzled into zombie objects whose only purpose is to report an error when someone calls them. Swizzling was also used in Enterprise Objects Framework to create database faults. Swizzling is used today by Appleās Foundation Framework to implement Key-Value Observing.
- Serialization, commonly called Archiving in Objective-C, can be done by overwriting read and write methods.
Read more about this topic: Objective-C
Famous quotes containing the word features:
“These, then, will be some of the features of democracy ... it will be, in all likelihood, an agreeable, lawless, particolored commonwealth, dealing with all alike on a footing of equality, whether they be really equal or not.”
—Plato (c. 427347 B.C.)
“All visible objects, man, are but as pasteboard masks. But in each eventin the living act, the undoubted deedthere, some unknown but still reasoning thing puts forth the mouldings of its features from behind the unreasoning mask. If man will strike, strike through the mask!”
—Herman Melville (18191891)
Main Site Subjects
Related Words