1 #pragma clang system_header
6 #define NS_ASSUME_NONNULL_BEGIN _Pragma("clang assume_nonnull begin")
7 #define NS_ASSUME_NONNULL_END _Pragma("clang assume_nonnull end")
9 NS_ASSUME_NONNULL_BEGIN
11 typedef struct _NSZone NSZone
;
12 typedef unsigned long NSUInteger
;
13 @
class NSCoder
, NSEnumerator
;
16 + (instancetype
)alloc
;
18 - (instancetype
)autorelease
;
22 - (id
)copyWithZone
:(nullable NSZone
*)zone
;
25 @protocol NSMutableCopying
26 - (id
)mutableCopyWithZone
:(nullable NSZone
*)zone
;
30 - (void)encodeWithCoder
:(NSCoder
*)aCoder
;
33 @protocol NSSecureCoding
<NSCoding
>
35 + (BOOL
)supportsSecureCoding
;
41 unsigned long *mutationsPtr
;
42 unsigned long extra
[5];
43 } NSFastEnumerationState
;
45 __attribute__((objc_root_class
))
50 @interface NSString
: NSObject
<NSCopying
>
51 - (BOOL
)isEqualToString
: (NSString
*)aString
;
52 - (NSString
*)stringByAppendingString
:(NSString
*)aString
;
53 - (nullable NSString
*)nullableStringByAppendingString
:(NSString
*)aString
;
54 + (NSString
* _Nonnull
) generateString
;
55 + (NSString
*) generateImplicitlyNonnullString
;
56 + (NSString
* _Nullable
) generatePossiblyNullString
;
59 void NSSystemFunctionTakingNonnull(NSString
*s
);
61 @interface NSSystemClass
: NSObject
62 - (void) takesNonnull
:(NSString
*)s
;
65 NSString
* _Nullable
getPossiblyNullString();
66 NSString
* _Nonnull
getString();
69 - (NSString
* _Nonnull
) getString
;
74 @interface NSDictionary
: NSObject
<NSCopying
, NSMutableCopying
, NSSecureCoding
>
77 - (id
)objectForKey
:(id
)aKey
;
78 - (NSEnumerator
*)keyEnumerator
;
79 - (id
)objectForKeyedSubscript
:(id
)aKey
;
83 @interface
NSDictionary (NSDictionaryCreation
)
86 + (id
)dictionaryWithObject
:(id
)object forKey
:(id
<NSCopying
>)key
;
87 + (instancetype
)dictionaryWithObjects
:(const id
[])objects forKeys
:(const id
<NSCopying
> [])keys count
:(NSUInteger
)cnt
;
91 @interface NSMutableDictionary
: NSDictionary
93 - (void)removeObjectForKey
:(id
)aKey
;
94 - (void)setObject
:(id
)anObject forKey
:(id
<NSCopying
>)aKey
;
98 @interface
NSMutableDictionary (NSExtendedMutableDictionary
)
100 - (void)addEntriesFromDictionary
:(NSDictionary
*)otherDictionary
;
101 - (void)removeAllObjects
;
102 - (void)setDictionary
:(NSDictionary
*)otherDictionary
;
103 - (void)setObject
:(id
)obj forKeyedSubscript
:(id
<NSCopying
>)key
__attribute__((availability(macosx
,introduced
=10.8)));