Settings

Theme

How Do I Declare A Block in Objective-C?

fuckingblocksyntax.com

5 points by sysworld 12 years ago · 1 comment

Reader

hamstergene 12 years ago

The block type syntax is just standard pointer to function syntax of C with `*` replaced with `^`. Yes it's mind blowing, especially when `returnType` is another block, but anything else would be at least inconsistent and/or illogical.

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection