Re: Memory management question
Re: Memory management question
- Subject: Re: Memory management question
- From: Randall Meadows <email@hidden>
- Date: Wed, 24 Mar 2004 13:43:58 -0500
At 12:40 PM -0500 3/24/04, Randall Meadows wrote:
line = [line stringByTrimmingCharactersInSet:...];
I now notice that NSMutableString has setString: available. Would it
be more efficient to do
[[line setString:[line stringByTrimmingCharactersInSet:...];
instead of creating a new object each time? That should trim down
the number of objects in my autorelease pool, right (which, at times,
can be a lot, which is why I'm using a number of nested autorelease
pools)?
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.