I understand all that.  I was providing an example to seek clarity in his 
question.  But I understand what he is asking now, thanks.

-Tony

On Jun 26, 2010, at 7:50 PM, Dave DeLong wrote:

> That's going to create a new copy of the array every time the block is 
> executed, and the array is not accessible outside of the scope of the block.  
> Matt was asking about:
> 
> __block char array1[5];
> NSBlockOperation * foo = [NSBlockOperation blockOperationWithBlock:^{
>  array1[0] = 'T';
> }
> 
> Dave
> 
> On Jun 26, 2010, at 8:48 PM, Tony Romano wrote:
> 
>> hmmm.  Your saying this doesn't work?
>> 
>>              NSBlockOperation * foo = [NSBlockOperation 
>> blockOperationWithBlock:^{
>>                      __block char array1[5];
>> 
>>                      array1[0] = 'T';
>>              }];
>> 
>> 
>> It works fine for me.  Are you saying something different?
>> 
>> -Tony

-Tony

_______________________________________________

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 arch...@mail-archive.com

Reply via email to