• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Working with weekdays on NSDate, NSDateComponents, NSCalendar and NSValueTransformer
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Subject: Re: Working with weekdays on NSDate, NSDateComponents, NSCalendar and NSValueTransformer
  • From: Roland King <email@hidden>
  • Date: Tue, 17 Mar 2009 23:44:25 +0800

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..


...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

_______________________________________________

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


  • Follow-Ups:
    • Re: Working with weekdays on NSDate, NSDateComponents, NSCalendar and NSValueTransformer
      • From: Joar Wingfors <email@hidden>
References: 
 >Working with weekdays on NSDate, NSDateComponents, NSCalendar and NSValueTransformer (From: Michele Barboni <email@hidden>)
 >Re: Working with weekdays on NSDate, NSDateComponents, NSCalendar and NSValueTransformer (From: Michele Barboni <email@hidden>)
 >Re: Working with weekdays on NSDate, NSDateComponents, NSCalendar and NSValueTransformer (From: Joar Wingfors <email@hidden>)

  • Prev by Date: Re: NSTableView Drag and Drop doesn't work
  • Next by Date: Re: Working with weekdays on NSDate, NSDateComponents, NSCalendar and NSValueTransformer
  • Previous by thread: Re: Working with weekdays on NSDate, NSDateComponents, NSCalendar and NSValueTransformer
  • Next by thread: Re: Working with weekdays on NSDate, NSDateComponents, NSCalendar and NSValueTransformer
  • Index(es):
    • Date
    • Thread