• 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: Simple memory problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Simple memory problem


  • Subject: Re: Simple memory problem
  • From: harry greenmonster <email@hidden>
  • Date: Fri, 6 Feb 2009 10:24:41 +0000

I cant help but think the preferable way Objective C should would is to send a release automatically to the receiver of a product of itself.

inputString = [inputString myMethod];

Its fairly clear in this situation that the original 'inputString' is not wanted and needs to die, and would seem like a more sensible way for the compiler to work as I struggle to think of a situation where the old value serves any perpose, being that it is now orphaned and useless.

Hence my confusion on the matter.


On 6 Feb 2009, at 03:17, Scott Ribe wrote:

So, how do I keep a copy hanging around AND kill the mysterious new
copy then (which shares the same name as the old one presumably)?

2 pointer variables...

--
Scott Ribe
email@hidden
http://www.killerbytes.com/
(303) 722-0567 voice



_______________________________________________

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: Simple memory problem
      • From: Scott Ribe <email@hidden>
    • Re: Simple memory problem
      • From: Bryan Henry <email@hidden>
References: 
 >Re: Simple memory problem (From: Scott Ribe <email@hidden>)

  • Prev by Date: Re: control app with help iphone?
  • Next by Date: Stack Trace Using Google Toolbox for Mac
  • Previous by thread: Re: Simple memory problem
  • Next by thread: Re: Simple memory problem
  • Index(es):
    • Date
    • Thread