The situation:
I have a class that implements a few methods itself but uses a helper object to handle many others. Putting method definitions in @interface allows compile-time type checking.
The problem:
Those methods not in the @implementation - handled by '-forwardInvocation' - are flagged by gcc with warnings (as you would expect):
warning: method definition for '-abc' not found
So is there some way to prevent/suppress these warnings ?
Compiler flag I haven't found?
Work around?
I've searched the archives, the web, build settings, etc.
Details:
-----------------------
@interface CustomView: NSView
{
ViewHelper *helper_;
}
- (BOOL) abc;
@end
@implementation CustomView
- (void) forwardInvocation: (NSInvocation *) inv
{
if( [helper_ respondsToSelector: [inv selector]] )
[inv invokeWithTarget: helper_];
else
[super forwardInvocation: inv];
}
// ('-methodSignatureForSelector:' omitted for brevity)
@end
@implementation ViewHelper
- (BOOL) abc
{
...
}
@end
-----------------------
Thanks for any help,
++matt
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Objc-language mailing list (
Objc-language@list...)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/objc-language/subscriber%40opensubscriber.com
This email sent to
subscriber@open...
opensubscriber is not affiliated with the authors of this message nor responsible for its content.