On Wed, Aug 18, 2010 at 1:52 PM, Murat Konar <mu...@pixar.com> wrote:

>
> On Aug 18, 2010, at 11:06 AM, John C. Randolph wrote:
>
>  -stringByReplacingCharactersInString: creates and returns a new string,
>> which is autoreleased.
>>
>
> Always? I recall running into a problem that was caused by
> -stringByReplacingCharactersInString: (or a method like it) simply returning
> self if no substitution occurred.
>
> _murat
>
>
Even if it does do that, you should treat the returned result as if it were
autoreleased.
_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to