Theocacao
Leopard
Design Element
Comment on "Forwarding NSInvocations in Objective-C"
by hitoro — May 14
The capability to catch and forward unknown messages is also available in Ruby (method_missing) and Smalltalk (#doesNotUnderstand:).

Smalltalk even goes one step further: the default implementation of the #doesNotUnderstand: method opens a debug window from where the missing method can be implemented and executed without even breaking the current application flow. There is a nice video showing how to use this feature in a Smalltalk IDE.
Back to "Forwarding NSInvocations in Objective-C"
Design Element

Copyright © Scott Stevenson 2004-2015