Re: Trying blocks

2009-10-30 Thread Dave DeLong
PLBlocks - http://code.google.com/p/plblocks/ Dave On Oct 30, 2009, at 9:28 AM, Jens Alfke wrote: Also, there is an open-source implementation of blocks for 10.5, including a compatible copy of the Clang compiler. I don't recall the name/URL of the package but it shouldn't be hard to find

Re: Trying blocks

2009-10-30 Thread Jens Alfke
On Oct 30, 2009, at 3:08 AM, Bill Cheeseman wrote: As far as I have been able to determine, you cannot include blocks- based code in a binary that runs on Leopard or older as well as on Snow Leopard. Testing for Leopard and older and branching around the blocks code does not solve the probl

Re: Trying blocks

2009-10-30 Thread Greg Parker
On Oct 30, 2009, at 1:40 AM, Jean-Daniel Dupas wrote: Le 30 oct. 2009 à 07:33, Greg Parker a écrit : On Oct 28, 2009, at 5:56 PM, Charlie Dickman wrote: It compiles fine but the load fails with... "__NSConcreteGlobalBlock", referenced from: ___block_holder_tmp_1.1207 in Controller.o ld: sym

Re: Trying blocks

2009-10-30 Thread Bill Cheeseman
On Oct 28, 2009, at 8:56 PM, Charlie Dickman wrote: 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 wha

Re: Trying blocks

2009-10-30 Thread Jean-Daniel Dupas
Le 30 oct. 2009 à 07:33, Greg Parker a écrit : On Oct 28, 2009, at 5:56 PM, Charlie Dickman wrote: 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

Re: Trying blocks

2009-10-29 Thread Greg Parker
On Oct 28, 2009, at 5:56 PM, Charlie Dickman wrote: 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

Trying blocks

2009-10-29 Thread Charlie Dickman
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 textFieldValu