Re: Does this caution need fixed? (newb)
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