• 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: self = [super init], nil?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: self = [super init], nil?


  • Subject: Re: self = [super init], nil?
  • From: Jean-Daniel Dupas <email@hidden>
  • Date: Mon, 10 May 2010 23:39:43 +0200

Le 10 mai 2010 à 22:24, David Duncan a écrit :

> On May 10, 2010, at 1:18 PM, Henry McGilton wrote:
>
>> Hi Scott.  Is there any rationale for the change?  Or just Evolution In Action?
>
> I would imagine the biggest reason for the change is that if(self = [super init]) causes a warning for some project settings.
>

Fortunately for people who like this old syntax, clang is smart enough to know the "if (self = [super initXXX])" is an usual construct and to not emit warning in this case when -Wparentheses is used :-)


-- Jean-Daniel




_______________________________________________

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

References: 
 >self = [super init], nil? (From: "Patrick M. Rutkowski" <email@hidden>)
 >Re: self = [super init], nil? (From: jeremy <email@hidden>)
 >Re: self = [super init], nil? (From: Scott Anguish <email@hidden>)
 >Re: self = [super init], nil? (From: Henry McGilton <email@hidden>)
 >Re: self = [super init], nil? (From: David Duncan <email@hidden>)

  • Prev by Date: Re: How to setup idle timer in 64-bit 10.6?
  • Next by Date: Re: Overriding text size in NSTextStorage
  • Previous by thread: Re: self = [super init], nil?
  • Next by thread: Re: self = [super init], nil?
  • Index(es):
    • Date
    • Thread