I have a typedef (no complains from Xcode - so I assume it to be correct):
typedef unsigned long (^LongBlock_t)(id a);
Now I want to set a variable to some block:
LongBlock_t aBlock = <...some magic here...> { (void)a; unsigned long x =
5; return x;};
What should <...some magic here...> look like?
And no, I do not want the block to figure out it's return type itself; I want
to set it explicitly.
Gerriet.
_______________________________________________
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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com
This email sent to [email protected]