@ PROPERTY PARAMETER

Source: Internet
Author: User

@ Property is an attribute access statement. The extension number supports the following attributes:
1,Getter = gettername, setter = settername, Set the method names of setter and getter
2,Readwrite, Readonly, set the available access level
2,AssignThe setter method directly assigns values without any retain operations. To solve the problem of the original type and cycle reference
3,Retain, The setter method performs the release old value on the parameter and retain the new value. All implementations are in this Order (CC has relevant information)
4,CopyThe setter method performs the copy operation. Like the retain processing process, the old value is release first, and then the new object is copied. retaincount is 1. This is a mechanism introduced to reduce context dependencies.
5,NonatomicNon-atomic access without synchronization. multi-thread concurrent access improves performance. Note: If this attribute is not added, both access methods are atomic transaction access by default. The lock is added to the object instance level.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.