On May 3, 2012, at 2:54 PM, Florian Pilz wrote:
> Hi again. I just stumbled about this problem for another time and rethought
> Ulis explanation. The point of my writing is: Ulis explanation is wrong. The
> program compiles (with a warning) and runs perfectly fine. So basically Xcode
> tells me, that it must know the implementation details, which are not given
> in the header file (but may be added in the implementation file -- therefore
> a warning rather an error).
Please post your code in its entirety.
I just tried this, and it gives me a warning:
// t.m
#import <Foundation/Foundation.h>
@protocol FooProto;
@interface SomeClass : NSObject <FooProto>
@end
@implementation SomeClass
@end
int main(int argc, char **argv)
{
[SomeClass new];
return 0;
}
@protocol FooProto
@end
// END t.m
% clang -o t t.m -framework Foundation
t.m:5:34: warning: cannot find protocol definition for 'FooProto'
1 warning generated.
--Kyle Sluder
_______________________________________________
Cocoa-dev mailing list ([email protected])
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com
This email sent to [email protected]