I want to use a category to make a method on the original class available as a property as well.
Class A:
@interface ClassA
- (NSString*)foo;
@end
I wrote two articles on this, though the concept is slightly different from the question you're asking.
This is a LOT better than method swizzling, at least: way safer.
If something's declared in your category's interface, its definition belongs in your category's implementation.
Here's the warning you're getting:
warning: property ‘foo’ requires method '-foo' to be defined - use @synthesize, @dynamic or provide a method implementation
To suppress this warning, have this in your implementation:
@dynamic foo;