Protocol + Delegate = conflict types

2009-01-16 Thread Christian Giordano
Hi guys, I'm trying to implement the Delegate pattern and I would like a delegate that works like NSURLConnection where any method of the delegate returns itself. The problem I have is that if I specify its type in the methods parameters instead of id: // RemoteLoader.h @protocol

Re: Protocol + Delegate = conflict types

2009-01-16 Thread Quincey Morris
On Jan 16, 2009, at 00:38, Christian Giordano wrote: // RemoteLoader.h @protocol RemoteLoaderDelegate -(void) onLoadingFail:(RemoteLoader *)loader; -(void) onLoadingFinish:(RemoteLoader *)loader; -(void) onLoadingProgress:(RemoteLoader *)loader; @end @interface RemoteLoader : NSObject {

Re: Protocol + Delegate = conflict types

2009-01-16 Thread Christian Giordano
Yep, that made the trick! Thanks a lot, chr On Fri, Jan 16, 2009 at 9:07 AM, Quincey Morris quinceymor...@earthlink.net wrote: On Jan 16, 2009, at 00:38, Christian Giordano wrote: // RemoteLoader.h @protocol RemoteLoaderDelegate -(void) onLoadingFail:(RemoteLoader *)loader; -(void)