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 07:31:22 +0100
Am 08.02.2004 um 04:53 schrieb Alan Cook:
I have
a method addPoint: which is called during the mouseDown: method. I
have that working correctly. The addPoint method is called, and when
the image does not fill the entire view, the dot shows.
You are not doing the actual drawing from inside your addPoint: method,
do you?
As Glen already pointed out, drawing is done in drawRect: - and _only_
there.
In addPoint: you should merely alter your model.
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.