Re: [Obj-C] if (self) vs. if (self != nil)
Re: [Obj-C] if (self) vs. if (self != nil)
- Subject: Re: [Obj-C] if (self) vs. if (self != nil)
- From: Preston Sumner <email@hidden>
- Date: Sun, 26 Feb 2012 20:51:33 -0700
On Feb 26, 2012, at 7:38 PM, Graham Cox wrote:
>
> On 27/02/2012, at 1:27 PM, Karl Goiser wrote:
>
>> use double parentheses
>
>
> Yes, but that's not what the poster was suggesting. I pointed out why that form is bad.
>
> This is a solution, but so is Apple's recommended form.
>
> --Graham
Out of curiosity, where does Apple recommend a particular form? Examples in the online documentation are inconsistent in this regard.
Preston
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden