Drawing onto NSImageView subclass (Newbie)
Drawing onto NSImageView subclass (Newbie)
- Subject: Drawing onto NSImageView subclass (Newbie)
- From: Alan Cook <email@hidden>
- Date: Sat, 7 Feb 2004 19:53:08 -0800 (PST)
Hi,
I'm a Obj-C/Cocoa newbie and this is my first post. I've read Cocoa In
A Nutshell and am working my way through Learning Cocoa With
Objective-C. I feel familiar with object oriented programming, through
experience in Java, which I am also currently expanding in.
Anyway, I have an NSImageView subclass to which I draw an image (a map
in particular) and then can click to place dots into the view. 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. But if I click
the image, I can't see the dot, though I presume it is being drawn
under the image.
My question is, how do I draw the dot onto of the image? I plan on
using collections of points to be able to save and retrieve points
between launches, if that makes any difference as to best way of
implementing. I've already searched the archives and tried to find
docs that might help, but to no avail.
Thanks in advance,
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.