• 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: autorelease CGImageRef?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: autorelease CGImageRef?


  • Subject: Re: autorelease CGImageRef?
  • From: Peter N Lewis <email@hidden>
  • Date: Sat, 9 Aug 2008 08:53:24 +0800

At 3:19 PM -0700 8/8/08, Chris Hanson wrote:
On Aug 7, 2008, at 7:07 PM, Peter N Lewis wrote:

At 8:24 AM -0700 7/8/08, Chris Hanson wrote:
If you build with the Mac OS X 10.5 SDK, you should be able to use NSMakeCollectable since it's declared as an inline function.

The earliest release of Mac OS X you're targeting is a function of the Mac OS X Deployment Target build setting, not the SDK.

That's true, but its not safe to do so.

For example, that will allow kCGBlendModeCopy to be used, even though its not available in 10.4.

It is as safe as it ever was. You just need to put in checks for what OS you're running on around places you use functionality from the newer release(s).

My point is, the compiler will not tell you that you are using a constant like kCGBlendModeCopy that is not supported in 10.4 if you use the 10.5 SDK with Deployment Target 10.4. On the other hand, the compiler will tell you if you try to use kCGBlendModeCopy with the 10.4 SDK because it's not defined. You can still manually define it and use it, but you have to go out of your way to do it - as you should if you want your code to work on 10.4 first time instead of after a lot of beta testing.


So I'll stick with the 10.4 SDK until I really have to use something difficult from 10.5, by which time I will hopefully be able to drop 10.4 entirely.

Thanks,
   Peter.

--
              Keyboard Maestro 3 Now Available!
                Now With Status Menu triggers!

Keyboard Maestro <http://www.keyboardmaestro.com/> Macros for your Mac
<http://www.stairways.com/>           <http://download.stairways.com/>
_______________________________________________

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


References: 
 >Re: autorelease CGImageRef? (From: Mike Abdullah <email@hidden>)
 >Re: autorelease CGImageRef? (From: Jean-Daniel Dupas <email@hidden>)
 >Re: autorelease CGImageRef? (From: Negm-Awad Amin <email@hidden>)
 >Re: autorelease CGImageRef? (From: "Shawn Erickson" <email@hidden>)
 >Re: autorelease CGImageRef? (From: Peter N Lewis <email@hidden>)
 >Re: autorelease CGImageRef? (From: Chris Hanson <email@hidden>)
 >Re: autorelease CGImageRef? (From: Peter N Lewis <email@hidden>)
 >Re: autorelease CGImageRef? (From: Chris Hanson <email@hidden>)

  • Prev by Date: Sharing NSViews
  • Next by Date: Re: Sharing NSViews
  • Previous by thread: Re: autorelease CGImageRef?
  • Next by thread: Re: autorelease CGImageRef?
  • Index(es):
    • Date
    • Thread