Re: Should we release a CGImage created from NSBitmapImageRep ?
Re: Should we release a CGImage created from NSBitmapImageRep ?
- Subject: Re: Should we release a CGImage created from NSBitmapImageRep ?
- From: Dave Keck <email@hidden>
- Date: Sun, 6 Sep 2009 01:25:32 -1000
>From the docs on -CGImage
"Returns an autoreleased CGImage object (an opaque type) from the
receiver’s current bitmap data."
... if you expect it to stick around, you need to retain it.
Otherwise, you needn't do anything: you shouldn't CGImageRelease() it,
because you don't own it.
_______________________________________________
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