Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Re: autorelease CGImageRef?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: autorelease CGImageRef?



On Aug 6, 2008, at 7:44 PM, Peter N Lewis wrote:

This email sent to email@hidden 2:26 PM +0200 6/8/08, Jean-Daniel Dupas wrote:
If I'm not wrong, it should be something like this:

[NSMakeCollectable(aCGImageRef) autorelease];

This appears correct, except for the fact that, for reasons known only to Apple, although CFMakeCollectable is available in 10.4, the trivial NSMakeCollectable macro is available only in 10.5.

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.

 -- Chris

_______________________________________________

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>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.