Xcode 4 gives me compiler warnings in a performSelectorOnMainThread:withObject:waitUntilDone: sent to my delegate, and I don't understand it.
My delegate is declared as follows:
@property (nonatomic, assign) id <AccountFeedbackDelegate> delegate;
And then it eventually runs along the main thread:
[self.delegate performSelectorOnMainThread:@selector(didChangeCloudStatus) withObject:nil waitUntilDone:NO];
However, Xcode does not give me:
warning: Semantic Issue: Method '-performSelectorOnMainThread: withObject: waitUntilDone:' not found (the default return type is 'id')
Of course, the code compiles and works fine, but I don't like this warning. When I override the delegate as follows, the warning disappears, but I don't like the workaround:
@property (nonatomic, assign) NSObject <AccountFeedbackDelegate> *delegate;
What am I missing? What have I done wrong? Cheers
EP
source share