You are not allowed to add instance variables to a class through categories, see https://stackoverflow.com/a/13000930/171933
Since you need a variable to hold the value of didDisplayRecommendation
, you are out of luck of doing this with a category (unless you want to get dirty https://developer.apple.com/library/mac/documentation/Cocoa/Reference/ObjCRuntimeRef/Reference/reference.html#//apple_ref/doc/uid/TP40001418-CH3g-SW5).
I'd recommend re-thinking your architecture to see if you really need to use categories. Subclasses or even Mixins might be the better way to go.