Friday, September 5, 2014

Objective-C:Constants


  • YES
  • NO
  • nil
  • Nil
  • OBJC_OLD_DISPATCH_PROTOTYPES
  • OBJC_ROOT_CLASS
  • NS_VALID_UNTIL_END_OF_SCOPE
  • OBJC_ASSOCIATION_ASSIGN
  • OBJC_ASSOCIATION_RETAIN_NONATOMIC
  • OBJC_ASSOCIATION_COPY_NONATOMIC
  • OBJC_ASSOCIATION_RETAIN
  • OBJC_ASSOCIATION_COPY
/* YES */
#define YES (BOOL)1

/* NO */
#define NO (BOOL)0

/* nil */
#define nil __DARWIN_NULL

/* Nil */
#define Nil __DARWIN_NULL

/* OBJC_OLD_DISPATCH_PROTOTYPES */
#define OBJC_OLD_DISPATCH_PROTOTYPES 1

/* OBJC_ROOT_CLASS */
#define OBJC_ROOT_CLASS

/* NS_VALID_UNTIL_END_OF_SCOPE */
#define NS_VALID_UNTIL_END_OF_SCOPE

/* OBJC_ASSOCIATION_ASSIGN */
/* OBJC_ASSOCIATION_RETAIN_NONATOMIC */
/* OBJC_ASSOCIATION_COPY_NONATOMIC */
/* OBJC_ASSOCIATION_RETAIN */
/* OBJC_ASSOCIATION_COPY */
enum {
    OBJC_ASSOCIATION_ASSIGN = 0,
    OBJC_ASSOCIATION_RETAIN_NONATOMIC = 1,
    OBJC_ASSOCIATION_COPY_NONATOMIC = 3,
    OBJC_ASSOCIATION_RETAIN = 01401,
    OBJC_ASSOCIATION_COPY = 01403
};

No comments: