• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Leopard on PPC
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Leopard on PPC


  • Subject: Re: Leopard on PPC
  • From: "Sherm Pendley" <email@hidden>
  • Date: Thu, 27 Mar 2008 11:59:59 -0400

On Thu, Mar 27, 2008 at 11:25 AM, Clark Cox <email@hidden> wrote:

> On Wed, Mar 26, 2008 at 4:48 PM, Sherm Pendley <email@hidden>
> wrote:
> > On Wed, Mar 26, 2008 at 7:04 PM, Lorenzo <email@hidden> 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?
>
> CFBoolean *is* toll free bridged to NSNumber.


OK, so where is that documented then? As I said, the CFBoolean reference
says not a word about it:

    <
http://developer.apple.com/documentation/CoreFoundation/Reference/CFBooleanRef/Reference/reference.html
>

By contrast, every other toll-free bridged CF class I can think of
explicitly documents that fact.

sherm--
_______________________________________________

Cocoa-dev mailing list (email@hidden)

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:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Leopard on PPC
      • From: glenn andreas <email@hidden>
    • Re: Leopard on PPC
      • From: Jean-Daniel Dupas <email@hidden>
    • Re: Leopard on PPC
      • From: Matt Gough <email@hidden>
References: 
 >Re: Leopard on PPC (From: Laurent Cerveau <email@hidden>)
 >Re: Leopard on PPC (From: Lorenzo <email@hidden>)
 >Re: Leopard on PPC (From: "Sherm Pendley" <email@hidden>)
 >Re: Leopard on PPC (From: "Clark Cox" <email@hidden>)

  • Prev by Date: Re: A Tab after 4 SPACEs
  • Next by Date: Re: Core Data/IB questions
  • Previous by thread: Re: Leopard on PPC
  • Next by thread: Re: Leopard on PPC
  • Index(es):
    • Date
    • Thread