// #import <Cocoa/Cocoa.h> @import Cocoa;
NSNumber *yes = @YES; NSNumber *number = @42; NSArray *array = @[@"Hello", @"World"]; NSDictionary *dictionary = @{ @"name" : NSUserName() };
Always use NS_ENUM and NS_OPTIONS to declare enum types:
typedef NS_ENUM(NSInteger, HNExample) { HNExampleDefault, HNExample1, HNExample2 };
Always use NS_ENUM and NS_OPTIONS to declare enum types: