Re: draw and ... draw, not drawing
Re: draw and ... draw, not drawing
- Subject: Re: draw and ... draw, not drawing
- From: Scott Anguish <email@hidden>
- Date: Sat, 25 Feb 2006 02:21:06 -0500
this is likely because of one of two things...
On Feb 24, 2006, at 3:24 PM, Michael Hanna wrote:
[dropImage drawAtPoint:drawLocation fromRect:NSZeroRect
operation:NSCompositeSourceOver fraction:1.0];
1. You are specifying an empty rect as the source to draw from in the
image.. that should be the size of the image. I can't seem to find a
place in the doc that says that NSZeroRect means the entire image (if
there is, please point it out and I'll make sure it gets mentioned in
this method's doc)
my guess is that is the problem.. however...
2. You're immediately telling the view it needs to display. Unless
you are storing that image reference someplace and drawing it as part
of your drawRect: implementation it'll get erased pretty quickly
after you draw it originally.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden