Here's a (reduced) class declaration from an example on apple's developer:
@interface myController : UITableViewController {
NSArray *samples;
}
@property (nonatomic, retain) NSArray *samples
What is the purpose of declaring
{
NSArray *samples;
}
when you declare it again as a property? If you leave out:
{
NSArray *samples;
}
you can still use @synthesize
in your .m and get a reference to it!
I'm a little confused as to the purpose of the first declaration.
Thanks