Possible Duplicate:
Instance variables declared in ObjC implementation file
I would like to know the difference in terms of visibility between the following two code snippets, i.e. where and who can access/see the variable name and all other difference as well (other than one is category).
1:
// in implementation file SchoolTableViewController.m
@interface SchoolTableViewController()
{
NSString* name;
}
@end
@implementation SchoolTableViewController
...
@end
2:
// in implementation file SchoolTableViewController.m
@implementation SchoolTableViewController
{
NSString* name;
}
...
@end