Resolved @Synthisize Error message?

Discussion in 'Mac Programming' started by larswik, Dec 3, 2011.

  1. larswik, Dec 3, 2011
    Last edited: Dec 3, 2011

    macrumors 68000

    Sep 8, 2006
    I found my mistake and such a stupid one to make. I declared my ivars in the wrong area and forgot to use brackets {}. it works. funny how I struggle with it for hours and then as soon as I post for help I discover the answer!


    I have not seen this before? I checked the spelling of all of my instance variables and I get this error message for all of the instance variables.
    Header file
    #import <Foundation/Foundation.h>
    NSString *name;
    NSNumber *size;
    NSString *location;
    NSString *date;
    NSImage *image;
    @interface Item : NSObject
    @property (copy) NSString *name;
    @property (copy) NSString *size;
    @property (copy) NSString *location;
    @property (copy) NSString *date;
    @property (copy) NSImage *image;
    #import "Item.h"
    @implementation Item
    @synthesize name;
    @synthesize size, location, date, image;

Share This Page