Theocacao
Leopard
Design Element
Comment on "A Roadmap Through Cocoa"
by Peter Hosey — Jan 20
Generally, when you have two objects that don't know about each other (neither one owns, is a delegate of, or is otherwise related to the other), the question of "how do I get the other object to do something/get information from or to the other object" is the wrong question. To get it to do something, use NSNotification. For passing information around, you usually have a third object set up KVO. (You are writing accessors, right?)
Back to "A Roadmap Through Cocoa"
Design Element

Copyright © Scott Stevenson 2004-2015