Re: drawing to an image and quickly copying it
Re: drawing to an image and quickly copying it
- Subject: Re: drawing to an image and quickly copying it
- From: Mitchell Livingston <email@hidden>
- Date: Wed, 23 May 2007 12:22:59 -0700
Thanks. That helped a lot. It seems that this is probably an Apple bug, and I was going crazy playing around with the different cache options.
Thanks,
Mitch
On Wednesday, May 23, 2007, at 02:07PM, "Charles Steinman" <email@hidden> wrote:
>Someone from Apple might be able to shed more light on how this is supposed to work, but check out this blog entry for a workaround:
>http://wincent.com/a/about/wincent/weblog/archives/2005/07/infuriating_coc.php
>
>Cheers,
>Chuck
>
>----- Original Message ----
>From: Mitchell Livingston <email@hidden>
>To: email@hidden
>Sent: Wednesday, May 23, 2007 9:41:45 AM
>Subject: drawing to an image and quickly copying it
>
>I have an NSImage that I draw to with lockFocus, compositeToPoint:
>with other images, and then unlockFocus on the image. After this I
>make a copy of the image using [image copy] and draw to this copy. At
>this point it seems that the image that is copied is the image before
>I did all of the initial drawing; furthermore, it seems that all of
>the drawing on the initial image isn't saved at all.
>
>I tested not doing the copy, and it displayed fine, so I know the
>initial drawing worked at some point, but is lost when I make the
>copy. If it helps, the initial image itself is a copy of an image
>from a file (obtained from imageNamed:).
>
>Any help would be greatly appreciated.
>_______________________________________________
>
>Cocoa-dev mailing list (email@hidden)
>
>Do not post admin requests or moderator comments to the list.
>Contact the moderators at cocoa-dev-admins(at)lists.apple.com
>
>Help/Unsubscribe/Update your Subscription:
>
>This email sent to email@hidden
>
>
>
>
>
>
>
>
>____________________________________________________________________________________Need a vacation? Get great deals
>to amazing places on Yahoo! Travel.
>http://travel.yahoo.com/
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden