Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

MatthewF

macrumors newbie
Original poster
Jun 27, 2010
21
0
Hey in all my previous applications I've only needed one window and I put practically all my code in a single NSView. This NSView controlled everything, received all input, and did the drawing. All in one nice and neat .h and .m file.

Now I'm making multiple windows and am a bit worried. How should I set it up? Should I put all my logic code in the delegate and have individual drawing code in each window? How will the drawing code access the logic to know what to draw?
Can I somehow connect both windows and all things it contains to the delegate so the delegate can use logic and manipulate the NSViews to draw stuff?


Thanks,
Matt
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.