Hi Ken,
Actually, the -[NSImage lockFocus]/-[NSImage unlockFocus] were added
to deal with a multi-thread problem that was deadlocking things. If a
background thread updated screen state while I was creating the RGB
image representation, I would later see a message in the console log
read
Hi Ron,
It was the -[NSImage lockFocus]/-[NSImage unlockFocus] that did it. You
should just take them out, they weren't relevant to what you were trying to
do.
-[NSImage lockFocus] sets the receiver up as a drawing _destination_. You
aren't trying to draw into the image here, you're trying to dr
Folks,
I'm having an issue where CMYK images aren't being recognized by my
quartz compositions, so I need to convert them to RGB for display.
I've written a routine to do it, but its causing problems.
NSImageRep* theImageRep = [inputImage bestRepresentationForDevice:
[NSDictionary dictio