I have a rather complicated protocol to which I add methods. Most new @optional methods, but they are conjugate.
For example, these two methods work together:
@optional - (BOOL) shouldIDoSomethingHere; - (CGPoint) whereShouldIDoIt;
In this example, if the first method is implemented, I want to declare the second method as @required , otherwise both are optional. What I want is a way to nest or group protocol methods as all necessary or not based on context.
Ideally, something like:
@optional @required - (BOOL) shouldIDoSomethingHere; - (CGPoint) whereShouldIDoIt; @endRequired
source share