Can you please write for me a block which conforms to this definition: (BOOL(^)(id))block
.
The closest I have gotten is:
typedef BOOL (^birds)(MyObject*);
birds c = ^(MyObject* p){ return (BOOL)[p.something boolValue]; };
But it seems passing this c
in a message who wants (BOOL(^)(id))block
is a no go.