Reputation: 3730
I'm not familiar with Objective-C syntax, so could someone explain what every term means in the following line of code?
@property (nonatomic, retain, readonly) NSManagedObjectContext *managedObjectContext;
Upvotes: 0
Views: 610
Reputation: 12490
Vladimir is correct.
But I will suggest you to read Objective-C 2.0 reference First for long run.
Upvotes: 0
Reputation: 3604
readonly accessor means only the getter method is synthesised. The value is read only.
retain accessor means this class retains the pointer, the previous value is released
nonatomic accessor means that no locking is applied to the synthesised getter
@property reveals this member for synthesis so that getters/setters can be created. Without it you would have to access the property directly.
NSManagedObjectContext is a type of object/class, and *managedObjectContext is a pointer to an instance of that object.
Upvotes: 0
Reputation: 170819
Once again - best advice here is to read Properties section in official documentation...
Upvotes: 14