FROM : Sherm Pendley
DATE : Thu Mar 27 00:48:17 2008
On Wed, Mar 26, 2008 at 7:04 PM, Lorenzo <<email_removed>> 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--
DATE : Thu Mar 27 00:48:17 2008
On Wed, Mar 26, 2008 at 7:04 PM, Lorenzo <<email_removed>> 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--
| Related mails | Author | Date |
|---|---|---|
| Lorenzo | Mar 26, 17:51 | |
| Laurent Cerveau | Mar 26, 18:02 | |
| Jean-Daniel Dupas | Mar 26, 18:07 | |
| Lorenzo | Mar 26, 21:02 | |
| Nick Zitzmann | Mar 26, 21:17 | |
| Laurent Cerveau | Mar 26, 21:29 | |
| Jonathan Hess | Mar 26, 21:41 | |
| Lorenzo | Mar 27, 00:04 | |
| Sherm Pendley | Mar 27, 00:48 | |
| Clark Cox | Mar 27, 16:25 | |
| Clark Cox | Mar 27, 16:29 | |
| Sherm Pendley | Mar 27, 16:59 | |
| Matt Gough | Mar 27, 17:18 | |
| Jean-Daniel Dupas | Mar 27, 17:19 | |
| glenn andreas | Mar 27, 17:22 | |
| Sherm Pendley | Mar 27, 17:33 | |
| Scott Thompson | Mar 27, 21:39 | |
| Lorenzo | Apr 28, 09:31 | |
| Nick Zitzmann | Apr 28, 09:34 | |
| Lorenzo | Apr 28, 09:48 | |
| Jean-Daniel Dupas | Apr 28, 09:58 | |
| Jean-Daniel Dupas | Apr 28, 10:58 | |
| Michael Vannorsdel | Apr 28, 18:58 |






Cocoa mail archive

