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
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