Re: UIGraphicsBeginImageContext thread safety

2009-10-01 Thread Andrew
Hi glenn, what is it doing that renders it not thread safe, does anyone know? At the very least, it needs to call UIGraphicsPushContext to set the current "ui graphics context", which is documented as needing to be done on the main thread (which implies that there is a single, global "ui

Re: UIGraphicsBeginImageContext thread safety

2009-10-01 Thread glenn andreas
On Oct 1, 2009, at 6:41 AM, Andrew wrote: Hi All, So clearly the UIGraphicsBeginImageContext() set of calls are not thread safe, I was attempting to use them in an NSOperation and they are causing a crash, further research has shown me that I need to drop down into the CG calls to do wha

UIGraphicsBeginImageContext thread safety

2009-10-01 Thread Andrew
Hi All, So clearly the UIGraphicsBeginImageContext() set of calls are not thread safe, I was attempting to use them in an NSOperation and they are causing a crash, further research has shown me that I need to drop down into the CG calls to do what I want to do. .and presumably I coul