• 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: Does this caution need fixed? (newb)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Does this caution need fixed? (newb)


  • Subject: Re: Does this caution need fixed? (newb)
  • From: Jason Stephenson <email@hidden>
  • Date: Thu, 03 Jul 2008 20:22:10 -0400

Chris Paveglio wrote:
Thanks all for your help and insight! I believe Jason's solution will
work for me as I am changing the assignment of what "theSetting" is
each time through the loop. I have a list (array) of files that gets
copied from one place to the other, and I change the origin and the
destination each time in the loop. Also Michael I understand now what
you are saying about the assignment. Thank you for putting it in a
nice detailed explanation! :-)

Just keep in mind that you'll be leaking memory with my example if you use it as written. I'm assuming that you'll do something with the string inside the loop. After doing whatever it is you do with it, you'll need to release theSettings. Making a mutable copy does allocate memory for the copy.







_______________________________________________

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: 
 >Re: Does this caution need fixed? (newb) (From: Chris Paveglio <email@hidden>)

  • Prev by Date: RE: launchd daemon at boot time
  • Next by Date: Crashes with no backtrace when printing
  • Previous by thread: Re: Does this caution need fixed? (newb)
  • Next by thread: Re: Does this caution need fixed? (newb)
  • Index(es):
    • Date
    • Thread