blob: 9bfb7939e773292c88879d5080ff055c3da49c25 [file] [log] [blame]
Anna Zaks3cd89ad2012-02-24 23:56:53 +00001#pragma clang system_header
2
3typedef unsigned int UInt32;
4typedef signed long CFIndex;
5typedef signed char BOOL;
6typedef unsigned long NSUInteger;
7@class NSString, Protocol;
8extern void NSLog(NSString *format, ...) __attribute__((format(__NSString__, 1, 2)));
9typedef struct _NSZone NSZone;
10@class NSInvocation, NSMethodSignature, NSCoder, NSString, NSEnumerator;
11@protocol NSObject
12- (BOOL)isEqual:(id)object;
13- (id)retain;
14- (oneway void)release;
15- (id)autorelease;
16- (id)init;
17@end @protocol NSCopying - (id)copyWithZone:(NSZone *)zone;
18@end @protocol NSMutableCopying - (id)mutableCopyWithZone:(NSZone *)zone;
19@end @protocol NSCoding - (void)encodeWithCoder:(NSCoder *)aCoder;
20@end
21@interface NSObject <NSObject> {}
22+ (id)allocWithZone:(NSZone *)zone;
23+ (id)alloc;
24- (void)dealloc;
25@end
26@interface NSObject (NSCoderMethods)
27- (id)awakeAfterUsingCoder:(NSCoder *)aDecoder;
28@end
29extern id NSAllocateObject(Class aClass, NSUInteger extraBytes, NSZone *zone);
30typedef struct {
31}
32NSFastEnumerationState;
33@protocol NSFastEnumeration - (NSUInteger)countByEnumeratingWithState:(NSFastEnumerationState *)state objects:(id *)stackbuf count:(NSUInteger)len;
34@end @class NSString, NSDictionary;
35@interface NSValue : NSObject <NSCopying, NSCoding> - (void)getValue:(void *)value;
36@end @interface NSNumber : NSValue - (char)charValue;
37- (id)initWithInt:(int)value;
38@end @class NSString;
39@interface NSArray : NSObject <NSCopying, NSMutableCopying, NSCoding, NSFastEnumeration> - (NSUInteger)count;
40@end @interface NSArray (NSArrayCreation) + (id)array;
41@end @interface NSAutoreleasePool : NSObject {
42}
43- (void)drain;
44@end extern NSString * const NSBundleDidLoadNotification;
45typedef double NSTimeInterval;
46@interface NSDate : NSObject <NSCopying, NSCoding> - (NSTimeInterval)timeIntervalSinceReferenceDate;
47@end typedef unsigned short unichar;
48enum {
49 NSASCIIStringEncoding = 1,
50 NSNEXTSTEPStringEncoding = 2,
51 NSJapaneseEUCStringEncoding = 3,
52 NSUTF8StringEncoding = 4,
53 NSISOLatin1StringEncoding = 5,
54 NSSymbolStringEncoding = 6,
55 NSNonLossyASCIIStringEncoding = 7,
56};
57typedef NSUInteger NSStringEncoding;
58
59@interface NSString : NSObject <NSCopying, NSMutableCopying, NSCoding>
60- (NSUInteger)length;
61- (NSString *)stringByAppendingString:(NSString *)aString;
62- ( const char *)UTF8String;
63- (id)initWithUTF8String:(const char *)nullTerminatedCString;
64- (id)initWithCharactersNoCopy:(unichar *)characters length:(NSUInteger)length freeWhenDone:(BOOL)freeBuffer;
65- (id)initWithCharacters:(const unichar *)characters length:(NSUInteger)length;
66- (id)initWithBytes:(const void *)bytes length:(NSUInteger)len encoding:(NSStringEncoding)encoding;
67- (id)initWithBytesNoCopy:(void *)bytes length:(NSUInteger)len encoding:(NSStringEncoding)encoding freeWhenDone:(BOOL)freeBuffer;
68+ (id)stringWithUTF8String:(const char *)nullTerminatedCString;
69@end @class NSString, NSURL, NSError;
70@interface NSData : NSObject <NSCopying, NSMutableCopying, NSCoding> - (NSUInteger)length;
71+ (id)dataWithBytesNoCopy:(void *)bytes length:(NSUInteger)length;
72+ (id)dataWithBytesNoCopy:(void *)bytes length:(NSUInteger)length freeWhenDone:(BOOL)b;
73- (id)initWithBytesNoCopy:(void *)bytes length:(NSUInteger)length;
74- (id)initWithBytesNoCopy:(void *)bytes length:(NSUInteger)length freeWhenDone:(BOOL)b;
75@end