Re: Drawing onto NSImageView subclass (Newbie)
Re: Drawing onto NSImageView subclass (Newbie)
- Subject: Re: Drawing onto NSImageView subclass (Newbie)
- From: Alan Cook <email@hidden>
- Date: Sun, 8 Feb 2004 18:07:18 -0800 (PST)
The addPoint: method was where I initially had my drawing occuring. In
theory (and practice) by removing the [self (un)lockFocus] code, I can
just call [self addPoint] in the drawRect: method. It really makes no
difference I believe, just a best/common practice issue.
My plan for mouseDown: is to redraw with the new point as well as add
to an array somewhere, with some default information about the actual
location of the point and other information pertaining to my app (which
would have to go through a controller). An interface to edit the
points will be made available through the controller.
The addPoint: method might have been better named draw or paintPoint:.
I just want to know that I can and how to draw multiple points.
Alan Cook
__________________________________
Do you Yahoo!?
Yahoo! Finance: Get your refund fast by filing online.
http://taxes.yahoo.com/filing.html
_______________________________________________
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.