Re: Blocks and Methods...
Re: Blocks and Methods...
- Subject: Re: Blocks and Methods...
- From: Ken Thomases <email@hidden>
- Date: Sat, 28 Jan 2012 10:51:10 -0600
On Jan 28, 2012, at 10:40 AM, R wrote:
> I originally chose to hold the block in an array, but that failed.
> I'm still confused over that...
By itself, an array only retains the block. A block must be explicitly copied if it is to outlive the scope that created it. And, of course, that copy operation has to be balanced with an eventual release.
Regards,
Ken
_______________________________________________
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