Re: scribbling
Re: scribbling
- Subject: Re: scribbling
- From: "Alastair J.Houghton" <email@hidden>
- Date: Wed, 13 Aug 2003 14:48:02 +0100
On Wednesday, August 13, 2003, at 12:45 pm, Richard Chamberlain wrote:
I tried drawing in the mouseDragged method but that doesn't seem to
work.
This should work, but only if you remembered to do [self lockFocus] and
[self unlockFocus] around your drawing. (Assuming, that is, that
you're drawing in the view that received the -mouseDragged: message.)
After reading the docs the only way I can see of changing this is to
just make a portion of the view dirty and then run through the array
calculating whether that line is affected and if so redraw it.
This shouldn't actually be very difficult, because you can just ask for
[bezierPath bounds] and see if that intersects with the dirty region.
Kind regards,
Alastair.
_______________________________________________
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.
References: | |
| >scribbling (From: Richard Chamberlain <email@hidden>) |