Re: Working with weekdays on NSDate, NSDateComponents, NSCalendar and NSValueTransformer
Re: Working with weekdays on NSDate, NSDateComponents, NSCalendar and NSValueTransformer
- Subject: Re: Working with weekdays on NSDate, NSDateComponents, NSCalendar and NSValueTransformer
- From: Joar Wingfors <email@hidden>
- Date: Tue, 17 Mar 2009 08:16:09 -0700
On 17 mar 2009, at 06.32, Michele Barboni wrote:
if(value = nil) return nil;
missed a "=".. sorry..
...and that's why it's great to re-train yourself to type it the other
way around:
if (nil == value)
A stricter set of compiler warnings helps too, of course:
-Wall -Wextra -Winit-self -Wundeclared-selector
(At least when compiling your "Release" configuration)
Cheers,
j o a r
_______________________________________________
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