Re: How to stop warning?
Re: How to stop warning?
- Subject: Re: How to stop warning?
- From: Jeff Hajewski <email@hidden>
- Date: Wed, 10 Feb 2016 10:00:52 -0500
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
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden