Dave, You want to apply the type annotation to the innermost pointer of theErrorPtr. My guess is you want something like this:
-(nullable LTWNodeInfo*) getNodeAtIndexPath:(nonnull NSIndexPath*) theIndexPath error:(NSError**_Nullable) theErrorPtr; this will allow you to do something like: NSError *err; LTWNodeInfo *nodeInfo = [self getNodeAtIndexPath:somePath error:&err]; whereas, annotating theErrorPtr like this: -(nullable LTWNodeInfo*) getNodeAtIndexPath:(nonnull NSIndexPath*) theIndexPath error:(NSError**_Nonnull) theErrorPtr; would give you a warning at the call site for the above example. Jeff On Wed, Feb 10, 2016 at 9:21 AM, Dave <d...@looktowindward.com> wrote: > Hi, > > I’m subclassing and overriding methods on a Class that has nullable/non > null syntax enabled. I getting a warning on the following declaration: > > -(nullable LTWNodeInfo*) getNodeAtIndexPath:(nonnull NSIndexPath*) > theIndexPath error:(NSError**) theErrorPtr; > > Its saying that “theError” needs nullable/nonnull, but I can’t figure out > the correct syntax for this to stop it moaning. Any ideas? > > Also I can’t seem to find where these are documented? > > Thanks in advance. > > All the Best > Dave > > > > _______________________________________________ > Do not post admin requests to the list. They will be ignored. > Xcode-users mailing list (Xcode-users@lists.apple.com) > Help/Unsubscribe/Update your Subscription: > > https://lists.apple.com/mailman/options/xcode-users/jeff.hajewski%40gmail.com > > This email sent to jeff.hajew...@gmail.com
_______________________________________________ Do not post admin requests to the list. They will be ignored. Xcode-users mailing list (Xcode-users@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/xcode-users/archive%40mail-archive.com This email sent to arch...@mail-archive.com