objective-c-category

Where to put "extra" implementation?

Hi there. Occationaly I see snippets of code creating new methods for objects and such that looks like this: @implementation UIImage (Extras) - (void)aMethod:(id)anObject { // some functionality } @end Where do I put this code? Do I put it in the class I'm currently writing code for? If so at what point in the code do I need to p...

Why is my UIView category causing warnings?

I added a category to UIView to hold some transition helper methods. The methods are all working; however, I get compiler warnings: warning: 'UIButton' may not respond to '-fadeOutWithDuration:' My "UIView+Trans.h" file looks like this: @interface UIImage (trans) - (void) fadeOutWithDuration:(CGFloat)duration; @end My "UIView+T...