Objects have properties to access for public.
Types of attributes
atomic - can be accessed only by one thread at a time.
non-atomic - can be accessed by any number of threads.
readonly - having access for readonly for object.
readwrite - having access for read and write object.
retain - will increase the retain count of the object. This is called as shallow copy. This will not create new memory reference.
copy - will create new memory location and copy all data to the newly created object. This is called as Deep copy.
assign - This will neither create new reference nor increase the retain count of the object. All delegate properties are assign.
Types of attributes
atomic - can be accessed only by one thread at a time.
non-atomic - can be accessed by any number of threads.
readonly - having access for readonly for object.
readwrite - having access for read and write object.
retain - will increase the retain count of the object. This is called as shallow copy. This will not create new memory reference.
copy - will create new memory location and copy all data to the newly created object. This is called as Deep copy.
assign - This will neither create new reference nor increase the retain count of the object. All delegate properties are assign.
No comments:
Post a Comment