• 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: 2 questions
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: 2 questions


  • Subject: Re: 2 questions
  • From: Robert Marini <email@hidden>
  • Date: Sun, 11 Jan 2009 12:56:21 -0500

You have lost me...but I will keep it in mind for later. What I do know is that if I step through the code, **that line** is never returned to, so the admonition that once "Return" is invoked, nothing further will be done is advice well taken.

You should review the memory management guide for Cocoa. In essence, you are creating an instance of myclassB and returning it. Once the return line is executed that method ceases being executed and so the release message to myB is never invoked. More appropriately would be to call something like


return [myB autorelease];

-rob.

Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________

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

  • Prev by Date: cocoa design for a database application
  • Next by Date: Re: Using UIImageView for animations
  • Previous by thread: Re: cocoa design for a database application
  • Next by thread: Getting the network Machine Icon
  • Index(es):
    • Date
    • Thread