Design Element
Comment on "A Roadmap Through Cocoa"
by Scott Stevenson — Jan 20
@Kyle: What if I need to access different classes from other classes? What's the best design for that kind of thing. Cocoa is a bit different and under normal conditions I'd understand this, but Cocoa confuses me in this respect
There's no one rule for things like this. It really depends on the what your goal is. I don't even think it's something that's specific to Cocoa. Figuring out the design of things seems to come from experience more than anything.

That said, I get the question about "accessing different classes from other classes" quite a bit, and it usually ends up that the question itself is beside the point. Usually, there's a simpler way to what you want. Again, it just depends on the particular case. Feel free to post a simple example here if you want.
Back to "A Roadmap Through Cocoa"
Design Element

Copyright © Scott Stevenson 2004-2015