Re: MVC and Cocoa question

2008-11-10 Thread Graham Cox
On 11 Nov 2008, at 3:56 am, Steven Guitar wrote: i am working on the challenge exercises for aaron hillegass' book, 3rd edition, for chapter 18 challenge. i have setup the application with a subclass of NSDocument (MyDocument), a subclass of NSView (DrawPadView), and a model component call

Re: MVC and Cocoa question

2008-11-10 Thread Kyle Sluder
On Mon, Nov 10, 2008 at 11:56 AM, Steven Guitar <[EMAIL PROTECTED]> wrote: > basically as the user uses the mouse to draw shapes, i have an > NSMutableArray in DrawPadView that contains the various shapes drawn by the > user. No. Bad. This is model information, it should be stored in the model.

MVC and Cocoa question

2008-11-10 Thread Steven Guitar
i am working on the challenge exercises for aaron hillegass' book, 3rd edition, for chapter 18 challenge. i have setup the application with a subclass of NSDocument (MyDocument), a subclass of NSView (DrawPadView), and a model component called Shape. basically as the user uses the mouse to