On Wed, Mar 26, 2008 at 7:04 PM, Lorenzo <[EMAIL PROTECTED]> wrote:

> Hi Laurent,
> I am going to debug and let you know. Right now I have found these lines.
> Might they cause the trouble on Leopard && PPC?
>
>    number = CFNumberCreate(NULL, kCFNumberFloatType, &destSize.width);
>    options = [NSDictionary dictionaryWithObjectsAndKeys:
>            (id) kCFBooleanTrue,   (id) kCGImageSourceShouldCache,
>            (id) kCFBooleanTrue,   (id)
>                        kCGImageSourceCreateThumbnailFromImageIfAbsent,
>            (id) number,           (id)
> kCGImageSourceThumbnailMaxPixelSize,
>            NULL];
>
>
>
>    options = [NSDictionary dictionaryWithObjectsAndKeys:
>            (id) kCFBooleanTrue,    (id) kCGImageSourceShouldCache,
>            (id) kCFBooleanTrue,    (id) kCGImageSourceShouldAllowFloat,
>            NULL];


I'm deeply suspicious of those typecast CFBoolRefs. Not every Core
Foundation class is toll-free bridged. CFNumber is, but I don't see any
indication in the CF reference that CFBoolean is. Have you tried using
NSNumber objects instead of those kCFBooleanTrue constants?

sherm--
_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please 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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to