Well, this is quite a weird issue. (I just hope it has something to do with my not-playing-that-much-with-Cocoa-for-a-while, or else...)
So, the issue is quite straightforward :
- I'm using Xcode 4.3.3 (a very simple test project - 10.7 SDK - no ARC)
- I'm creating a Category on some Class (e.g.
NSProgressIndicator
) - I'm including the appropriate header file
- When trying to use any of my Category's methods (however, it still shows up in the dropdown of available commands), I'm getting an error :
[NSProgressIndicator start]: unrecognized selector sent to instance 0x7f9f4b91a0a0
The code
(as an example - it has happened with other (100-times tested) categories):#import <Foundation/Foundation.h>
@interface NSProgressIndicator (NSProgressIndicator_Functions)
- (void)start;
- (void)stop;
@end
#import "NSProgressIndicator+Functions.h"
@implementation NSProgressIndicator (NSProgressIndicator_Functions)
- (void)start
{
[self setHidden:NO];
[self startAnimation:nil];
}
- (void)stop
{
[self setHidden:YES];
[self stopAnimation:nil];
}
@end
Any ideas?