Re: Drawing onto NSImageView subclass (Newbie)
Re: Drawing onto NSImageView subclass (Newbie)
- Subject: Re: Drawing onto NSImageView subclass (Newbie)
- From: Andreas Mayer <email@hidden>
- Date: Sun, 8 Feb 2004 22:05:31 +0100
Am 08.02.2004 um 20:01 schrieb Alan Cook:
Is it alright is I call my addPoint: method inside the drawRect:
method? Or am I just a total newbie.
You should try to distinguish between your model and the view.
The model holds the information what to draw and the view does the
actual drawing.
So you would probably call addPoint: in mouseDown: to add the point to
your model (an array for instance) and have the model read inside
drawRect: to draw the points accordingly.
bye. Andreas.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.