Skip to content
Better HN
Top
Best
Ask
Show
New
Jobs
Search
⌘K
How Do I Declare A Block in Objective-C?
(opens in new tab)
(fuckingblocksyntax.com)
5 points
sysworld
12y ago
1 comments
Save
Share
1 comments
1 comments · 1 top-level
top
newest
oldest
hamstergene
12y 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.
j
/
k
navigate · click thread line to collapse