Hi all, in my QCPlugIn, i'm trying to load a bunch of images (some of you might remember my problem that sending them in as a struct from QC doesn't work).
So I have put a "yes.png" in my resource folder and added the following code NSString *imagePath = [[NSBundle mainBundle] pathForImageResource:@"yes"]; only to find out it's returning null. I look in the package contents and sure enough there IS a Contents/Resources/yes.png. So I decide to persevere and hardcode the path to ../Resources/yes.png. Then I then write: CFURLRef url = CFURLCreateWithFileSystemPath(NULL, (CFStringRef) imagePath, kCFURLPOSIXPathStyle, 0); // this is fine CGImageSourceRef myImageSourceRef = CGImageSourceCreateWithURL(url, nil); // this returns null again! Which also returns null! So I thought I'd try not embedding the image in the plugin, and put it next to the plugin, and set the path to ../../yes.png. But null again. Am I doing something wrong here? Or is it just not possible to load images within a QCPlugIn. My QCPlugin needs about 20 different textures, and: - I can't seem to pass an array of images from QC (they come in as QCImage instead of QCPlugInInputImageSource) - I can't load images from within the QCPlugIn - both internal or external My options seem to be: - Embed all images in my QTZ and sending them in one by one (which I REALLY do not want to do) - The Plugin will be in a QTZ which will be loaded via an app. So the plugin doesn't need to be standalone. Is it possible to load all the images in the loader app and somehow send them to the plugin? Any ideas much appreciated, Cheers, ----------------------------Mehmet S. [EMAIL PROTECTED]
_______________________________________________ Do not post admin requests to the list. They will be ignored. Quartzcomposer-dev mailing list ([email protected]) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/quartzcomposer-dev/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]

