I have a memory management question. I was looking at the QCTV
example on from the quicktime site. It has some code that does the
following:
ICMCompressionSessionOptionsRef options;
..
Do some work
..
return (ICMCompressionSessionOptionsRef)[(id)options autorelease];
Can you do this with CoreFoundation allocated things that are not
bridged?
Autorelease pools ultimately just invoke -(void)release on the
objects. If the object is not a true ObjC object or a bridged CF
object, this will not work. I'm not sure what the result will be -
whether it'll crash or do nothing or what. Fair to say the result is
undefined and invariably bad.
Wade
_______________________________________________
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com
This email sent to [EMAIL PROTECTED]