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

Tham khảo tài liệu 'handbooks professional java-c-scrip-sql part 108', 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ả | @defs className Takes the name of an Objective-C class and evaluates to a sequence of type declarations that duplicate the field declarations of the class. This directive can appear only in a C structure declaration. @protocol ProtocolName Evaluates to a pointer to an instance of the Protocol class. You need this because you can t get a protocol class instance by using the protocol name directly as you can with a class object. @selector MethodName Evaluates to a SEL representing the specified method. @ string A shorthand for creating a string literal that s an instance of a user-defined string class. Use this when you need a string object constant. The directives @encode @defs and @ string deserve some additional explanation. Using @encode The following example shows how @ encode can be used to get the string that the Objective-C runtime uses to describe a type char itype @encode int The result of this statement will be to define i type as the one-character string i which is the runtime representation of an int type. The @encode directive can take any C or Objective-C type. The runtime uses the mapping between types and strings to encode the signatures of methods and associate them with selectors. You can use @encode to implement your own object storage and retrieval or other tasks that need to describe the types of values. Table 1-1 shows the results of applying @encode to C and Objective-C types. Table 1-1. Types and their encodings Type @encode type char c int i short s long l long long q unsigned char C unsigned int i unsigned short S unsigned long L unsigned long long Q float f double d void v char An object pointer @ Class SEL An array of N elements of type Ntype A structure called name with elements t1 t2 etc. name t112. A union type . A bit field of size N bN A pointer to type type Unknown type The runtime system also uses encodings for type qualifiers shown in Table 1-2 and you may encounter them in its representation of method signatures. However

TÀI LIỆU LIÊN QUAN
10    127    1
6    150    1
7    127    1
5    125    1
6    127    1
6    115    1
6    122    1
6    174    1
7    122    1
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.