Property Declaration


#1

I noticed that I don’t really need to declare a property between the curly brackets in the interface file to a class. Is there any downside to not doing this?

  • Joe

Example:

[code]//
// Asset.h
// BMITime
//
// Created by Joseph Faneuf on 8/11/13.

#import <Foundation/Foundation.h>

@interface Asset : NSObject
{
//NSString *label;
//unsigned int resaleValue;
}
@property (strong) NSString *label;
@property unsigned int resaleValue;
@end
[/code]


#2

No, as long as you are aware of what the compiler does on your behalf.


#3

Ok great thank you.

  • Joe