• 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: Memory management on returning nil in init
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Memory management on returning nil in init


  • Subject: Re: Memory management on returning nil in init
  • From: Jens Alfke <email@hidden>
  • Date: Wed, 23 Jun 2010 13:00:50 -0700

On Jun 23, 2010, at 12:47 PM, email@hidden wrote:

>    if (self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil])

Yes. Any expression of the form

	if(A = B)

i.e. an assignment directly inside an if, will result in a warning that this looks confusingly like a comparison.

—Jens_______________________________________________

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: Memory management on returning nil in init
      • From: Charles Srstka <email@hidden>
References: 
 >Re: Memory management on returning nil in init (From: Matt Neuburg <email@hidden>)
 >Re: Memory management on returning nil in init (From: Scott Anguish <email@hidden>)
 >Re: Memory management on returning nil in init (From: Scott Anguish <email@hidden>)
 >Re: Memory management on returning nil in init (From: email@hidden)

  • Prev by Date: Re: Memory management on returning nil in init
  • Next by Date: Re: Memory management on returning nil in init
  • Previous by thread: Re: Memory management on returning nil in init
  • Next by thread: Re: Memory management on returning nil in init
  • Index(es):
    • Date
    • Thread