views:

29

answers:

1

OrderDetailsView.h

 #import <UIKit/UIKit.h>

    @protocol OrderDetailsViewDelegate;

    @interface OrderDetailsView : UIViewController {
        IBOutlet UITextView *OrderDetails;
        NSString *selectedOrder;

        id <OrderDetailsViewDelegate> delegate;
    }

    @property (nonatomic, assign) id <OrderDetailsViewDelegate> delegate;
    - (IBAction)done:(id)sender;
    @end

    @property (nonatomic, retain) NSString* selectedOrder;
    @end


    @protocol OrderDetailsViewDelegate
    - (void)OrderDetailsViewDidFinish:(OrderDetailsView *)controller;
    @end

OrderDetailsView.m

#import "OrderDetailsView.h"


@implementation OrderDetailsView

@synthesize selectedOrder;
@synthesize delegate;

i am getting the error

property declaration not in @interface or @implementation context

+3  A: 
@end 

Must present only once in interface declaration, so remove redundant one (after done method)

Vladimir
also, I do believe an @end is needed for the @implementation.
filipe
the last @end corresponds to the property declaration so it is ok
Vladimir
@Vladimir do you mean the protocol declaration?
filipe
sorry, protocol of course. end of the working day - starting to confuse everything :)
Vladimir