Finally, I am starting to get a better sense of the use of protocols and delegates. The light that went on today was as a result of page 235 in Goldstein/Bove's iPad Application for Dummies, 2nd edition.
It helps that I'm picking through the example tiny bit by tiny bit, like I'm looking for gold dust in a big pan of water, rock and dirt. (Not a reflection on objective-c!)
"The methods that a class delegates are defined in a protocol..... (using).... the @protocol directive."
"Protocols declare methods that can be implemented by any class."
.....
Previous helpful references from one of following page groups 204, 234-5, 318
* One object delegates the task of implementing one of it's methods, to another object
* Methods a class delegates are defined in a protocol
No comments:
Post a Comment