• 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: "Clark Cox" <email@hidden>
  • Date: Thu, 27 Mar 2008 08:29:58 -0700

On Wed, Mar 26, 2008 at 4: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?
>

No, but this line will cause problems when/if you build for 64-bit:
>     number = CFNumberCreate(NULL, kCFNumberFloatType, &destSize.width);

Use kCFNumberCGFloatType instead of kCFNumberFloatType, and make sure
that you later CFRelease(number). Or just use NSNumber.

>     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];

Also, be sure that you are not releasing either of the "options"
dictionary, as they are already autoreleased for you.


--
Clark S. Cox III
email@hidden
_______________________________________________

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: Scott Thompson <email@hidden>
References: 
 >Re: Leopard on PPC (From: Laurent Cerveau <email@hidden>)
 >Re: Leopard on PPC (From: Lorenzo <email@hidden>)

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