On Dec 6, 2013, at 7:27, Graham Cox <[email protected]> wrote:

> 
> On 6 Dec 2013, at 11:26 am, Graham Cox <[email protected]> wrote:
> 
>>                              NSBlockOperation* op = [NSBlockOperation 
>> blockOperationWithBlock:^
>>                              {
>>                                      CGContextClipToRect( ncx, tileRect );
>> 
>>                                      [self drawTile:tileRect inContext:ncx];
>>                              }];
> 
> 
> A question for blocks experts:
> 
> Is the value of <tileRect> here captured when the block is created,or when it 
> is run?

It is captured when the block is created.

-- 
Clark Smith Cox III
[email protected]
_______________________________________________

Cocoa-dev mailing list ([email protected])

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to