I am trying to implement a block in one of my apps. The code looks like this...

        BOOL (^fillWindow)(void) = ^(void) {
                BOOL empty = YES;
                int s = 0;
                for (NSTextField *theTextField in textFieldArray) {
                        int textFieldValue = [[theTextField stringValue] 
intValue];
                        empty = empty && (textFieldValue == 0);
[thePuzzle replaceObjectAtIndex: s++ withObject: [NSNumber numberWithInt: sudokuTextFieldValue]];
                }
                return empty;
        };
        if (!fillWindow()) {...

It compiles fine but the load fails with...

  "__NSConcreteGlobalBlock", referenced from:
      ___block_holder_tmp_1.1207 in Controller.o
ld: symbol(s) not found
collect2: ld returned 1 exit status

Can anyone explain this and help me with what I'm not doing or not doing right?

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

This email sent to [email protected]

Reply via email to