objective -c delegates syntax query
===

I am new to objective-c and pretty much confused with the way delegates are used. I came across this code and i would like to use it to clarify some of the doubts.

   

    #import <Foundation/Foundation.h>

    @protocol ProcessDataDelegate <NSObject>

    @required
    - (void) processSuccessful: (BOOL)success;

    @end

    @interface ClassWithProtocol : NSObject 
    {
      id <ProcessDataDelegate> delegate;
    }

    @property (retain) id delegate;

     -(void)startSomeProcess;

    @end



Here, there are 2 references to the word "delegate" can anyone explain what it means when used in context with "id angled bracket delegate angled-bracket-closed" ??

Again, there is a property with name delegate. Should it not cause any kind of conflict ??

Thanks in advance,




 



