I'm trying to implement a very simple strategy class in Objective-C that allows for strategies to be defined inline instead of being defined through inheritance. Currently my code looks like this:
@interface SSTaskStrategy : NSObject {
(NSArray *)(^strategy)(void);
}
@end
I thought this would work, but I'm getting the error
Expected specifier-qualifier-list before '(' token
Any ideas how to make this work?