我正在尝试在 Leopard 下的项目中构建集群插件。我有以下两个问题。
在项目中,接口类定义为
@interface ClusteringController : NSWindowController
{
.......
.....
....
}
@end.
并且这个类用于使用前向声明的实现类:
@class ClusteringController;
然后在一个函数中它被用作:
- (long) filterImage:(NSString*) menuName
{
ClusteringController *cluster = [[ClusteringController alloc] init];
[cluster showWindow:self];
return 0;
}
当我构建这个项目时,它会产生警告:
warning: receiver 'ClusteringController' is a forward class and corresponding @interface may not exist
还产生了另一个警告:
warning: no '-updateProxyWhenReconnect' method found
此警告针对以下代码行:
if(delegate) [delegate updateProxyWhenReconnect];
任何人都可以帮助我克服这些警告吗?