News for hackers. Stuff that matters.
Re:The best way to learn iOS Programming... well its working... by roel_v on Friday January 27, 2012 @04:32AM (#3517700)
It's an event system, what you would use function pointers for in C. I think its clearer to be specific and call delegates 'an implementation of the observer design pattern', rather than a design pattern in itself. Other implementations include the class GoF way with subclassing, or typesafe callback abstractions like libsigc or boost::signals in C++. In dynamic languages you'd just store an array with strings of function names to call, or object/method name pairs of methods to call.
Re:The best way to learn iOS Programming... well its working... by cnunciato on Friday January 27, 2012 @06:44AM (#3517948)
Well said. Observer is how I got my head around it also.