Caret in objective C

It depends on the context. In the example you show, it’s used to denote a Block. The caret symbol is also the bitwise XOR operator in C-based languages — that’s what most programmers would identify it as, so it’s good to understand that it can be both depending on where it appears, much like *, etc.

And while we’re suggesting references, one simply has to include Apple’s official Blocks reference.

Leave a Comment