• 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: Cross-SDK CGImageCreate
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Cross-SDK CGImageCreate


  • Subject: Re: Cross-SDK CGImageCreate
  • From: Jerry <email@hidden>
  • Date: Fri, 29 Sep 2006 09:01:11 +0100


On Oct 8, 2005, at 3:02 PM, David Dunham wrote:

If I want my code to run on Intel, I need to use
kCGBitmapByteOrder32Host. This constant doesn't exist prior to 10.4,
and I need to run on 10.2. So my first thought was simply to define it.
But that doesn't work, since the argument of CGImageCreate has changed
in 10.4 -- > it used to be CGImageAlphaInfo, and is now
CGBitmapInfo.

I can't answer the CodeWarrior issues, but I can point out another problem: You can't pass kCGBitmapByteOrder32Host in at all on Panther because it'll cause CGBitmapContextCreate et al to return NULL. My solution is to define my own constant equal to zero if compiling with __ppc__ and to kCGBitmapByteOrder32Host if __i386__. This will fail if Panther ever runs on Intel or Apple switches to yet another processor, but I feel fairly safe for the moment.


Jerry

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Re: Cross-SDK CGImageCreate (From: "Kevin Meaney" <email@hidden>)

  • Prev by Date: MyApp crashing with EXC_BADACCESS
  • Next by Date: Re: DWARF and gcc 3.3?
  • Previous by thread: Re: Cross-SDK CGImageCreate
  • Next by thread: Applescript to find source file in projects
  • Index(es):
    • Date
    • Thread