I am trying to implement a very simple strategic class in Objective-C, which allows you to define strategies within a string, rather than defining through inheritance. Currently my code is as follows:
@interface SSTaskStrategy : NSObject { (NSArray *)(^strategy)(void); } @end
I thought this would work, but I get an error
Expected list-qualifier-qualifier before '(' token
Any ideas how to make this work?
objective-c objective-c-blocks
iand675
source share