Re: Nullability question (NSEvent)

2016-06-27 Thread Jens Alfke
> On Jun 27, 2016, at 10:03 AM, Stefan Haller wrote: > > I see that -[NSEvent characters] is marked nullable; however, the > documentation seems to say otherwise. Have you checked the 10.12 SDK? From the API diffs I’ve seen, Apple's been correcting nullability annotations where they conflict

Nullability question (NSEvent)

2016-06-27 Thread Stefan Haller
I see that -[NSEvent characters] is marked nullable; however, the documentation seems to say otherwise. (It says that it will raise an exception if the event is not a key event; apart from that, it will return an empty string when there are no characters to return, e.g. for dead keys.) Is this a d

Re: Nullability Question

2016-01-11 Thread Seth Willits
On Jan 11, 2016, at 8:04 AM, Dave wrote: > I’ve noticed there are two forms to specify nullability on properties, is one > preferred syntax over the other? Judging by Apple's usage, using the property attributes (nullable and nonnull) are preferred. -- Seth Willits _

Nullability Question

2016-01-11 Thread Dave
Hi, I’ve noticed there are two forms to specify nullability on properties, is one preferred syntax over the other? @property (nonatomic,copy) NSString* _Nullable propA; @property(readonly,nullable) NSString* propB; Thanks Dave __