Very strange NSImage loading problem
Very strange NSImage loading problem
- Subject: Very strange NSImage loading problem
- From: Ricky Sharp <email@hidden>
- Date: Sun, 4 Mar 2007 12:42:53 -0600
I have an application with a custom UI which uses vector-based PDFs
for all images.
I'm now seeing what appears to be an image loading problem. I
believe I first saw this a couple of years back, but it would only
occur rarely when running the application via the debugger. Now, I'm
able to reproduce it about 20% of the time when running the demo
flavor of the app from Finder.
But, only a single image is not being loaded properly. And, such
image happens to always be the very first image that is loaded by the
app. The image was created with Illustrator and is a simple rounded-
rectangle filled with a gradient. The background is transparent.
When it doesn't load correctly, the entire bounds of the image is
filled by the gradient. It's as if the 'clipping path' of the
gradient is not being applied.
If I edit my main nib's first loaded button to point to a different
image, that image will sometimes fail. Thus, I know it's not an
issue with the PDF images themselves.
Has anyone else seen any issues like this with PDFs being loaded into
NSImage instances?
As a workaround, I'm going to create a dummy image (duplicate of the
PDF in question; just renamed) that I'll load at app startup.
Perhaps there is some PDF functionality that isn't always being
initialized?
I'm going to also post this to quartz-dev, so may continue the thread
there.
___________________________________________________________
Ricky A. Sharp mailto:email@hidden
Instant Interactive(tm) http://www.instantinteractive.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