Top "Objective-c-nullability" questions

This tag should be used for questions about the nullability annotations added to Objective-C with Xcode 6.3.

Pointer is missing a nullability type specifier

In Xcode 7 GM I started to get this warning: Pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_…

ios objective-c objective-c-nullability
Difference between nullable, __nullable and _Nullable in Objective-C

With Xcode 6.3 there were new annotations introduced for better expressing the intention of API's in Objective-C (and to ensure better …

objective-c nullable objective-c-nullability
How do I safely cast a `_Nullable` to a `_Nonnull` in Objective-C?

When compiling with -Wnullable-to-nonnull-conversion, we get a proper warning with the following code: NSString * _Nullable maybeFoo = @"foo"; ^(NSString * _Nonnull bar) { }(…

ios objective-c xcode nullable objective-c-nullability