What happens when I call NSMakeCollectable on a CFArrayRef?
What happens when I call NSMakeCollectable on a CFArrayRef?
- Subject: What happens when I call NSMakeCollectable on a CFArrayRef?
- From: Andrew Thompson <email@hidden>
- Date: Sat, 19 Jan 2008 17:56:39 -0500
I want to call a Core function that returns a CFArrayRef and make the
result garbage collectable.
The CFArray contains CFStrings...
Is this pattern OK?
-(NSArray *) doFoo {
return NSMakeCollectable(CFCopyFoo(someArgs));
}
Where CFCopyFoo returns a new CFArray containing copied CFStrings.
Or do I have to iterate over the array and call NSMakeCollectable on
each item in it?
AndyT (lordpixel - the cat who walks through walls)
A little bigger on the inside
(see you later space cowboy, you can't take the sky from me)
_______________________________________________
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