Re: Working with weekdays on NSDate, NSDateComponents, NSCalendar and NSValueTransformer

2009-03-17 Thread Joar Wingfors
On 17 mar 2009, at 08.44, Roland King wrote: I assumed that -Wall meant .. all. What does Wextra, Winit-self, Wundeclared-selector add? And why aren't they part of all? -Wall can't very well include everything, since a lot of the available warnings are very special in purpose and not gene

Re: Working with weekdays on NSDate, NSDateComponents, NSCalendar and NSValueTransformer

2009-03-17 Thread Roland King
I assumed that -Wall meant .. all. What does Wextra, Winit-self, Wundeclared-selector add? And why aren't they part of all? On Mar 17, 2009, at 11:16 PM, Joar Wingfors wrote: On 17 mar 2009, at 06.32, Michele Barboni wrote: if(value = nil) return nil; missed a "=".. sorry.. .

Re: Working with weekdays on NSDate, NSDateComponents, NSCalendar and NSValueTransformer

2009-03-17 Thread Joar Wingfors
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: -

Re: Working with weekdays on NSDate, NSDateComponents, NSCalendar and NSValueTransformer

2009-03-17 Thread Michele Barboni
On Mar 16, 2009, at 8:40 PM, Michele Barboni wrote: if(value = nil) return nil; missed a "=".. sorry.. ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the m