TAILIEUCHUNG - HandBooks Professional Java-C-Scrip-SQL part 121

Tham khảo tài liệu 'handbooks professional java-c-scrip-sql part 121', công nghệ thông tin, kỹ thuật lập trình phục vụ nhu cầu học tập, nghiên cứu và làm việc hiệu quả | 6. Calls -field if it exists. If all of these fail -storedValueForKey calls -handleQueryWithUnboundKey on your instance. The alternative search sequence supported by -storedValueForKey facilitates using key-value coding for storing and retrieving objects from a database when you want to bypass public accessors that may have sideeffects. - void takeStoredValue id Rvalue forKey NS String key Works like -takeValue forKey but with a possibly different search sequence If -useStoredAccessor return NO the sequence is the same. If useStoredAccessor returns YES the default behavior this method starts searching in reserved accessors ones starting with underscore first. For example if the key is field and useStoredAccessor returns YES -takeStoredValue forKey tries the following ways to get the associated value 1. Calls -_setField if it exists. 2. Sets _field if it exists and direct access is allowed. 3. Sets field if it exists and direct access is allowed. 4. Calls -setField if it exists. If all of these fail -takeStoredValue forKey calls -handleTakeValue forUnboundKey on your object. BOOL accessInstanceVariablesDirectly The NSObject version returns YES. Override this in your class to affect the search sequence for the basic methods -valueForKey and -takeValueForKey . BOOL useStoredAccessor The NSObject version returns YES. Override this in your class to affect the search sequence for the stored methods -storedValueForKey and -take StoredV alue forKey . Handling Key Lookup Failures The category NSKeyValueCodingExceptions provides three methods for handling failures in the lookup sequence and other problems - id handleQueryWithUnboundKey NSString key Called when lookup fails for a getter -valueForKey or -storedValueForKey with the provided key. The default version of this method provided in NSObject raises an UnknownKeyException. Override this to handle things your way. - void handleTakeValue id Rvalue forUnboundKey NS String key Called when lookup fails for a setter .

TAILIEUCHUNG - Chia sẻ tài liệu không giới hạn
Địa chỉ : 444 Hoang Hoa Tham, Hanoi, Viet Nam
Website : tailieuchung.com
Email : tailieuchung20@gmail.com
Tailieuchung.com là thư viện tài liệu trực tuyến, nơi chia sẽ trao đổi hàng triệu tài liệu như luận văn đồ án, sách, giáo trình, đề thi.
Chúng tôi không chịu trách nhiệm liên quan đến các vấn đề bản quyền nội dung tài liệu được thành viên tự nguyện đăng tải lên, nếu phát hiện thấy tài liệu xấu hoặc tài liệu có bản quyền xin hãy email cho chúng tôi.
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.