• 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: stringByReplacingCharactersInRange leading to bus error
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: stringByReplacingCharactersInRange leading to bus error


  • Subject: Re: stringByReplacingCharactersInRange leading to bus error
  • From: Allen Ingling <email@hidden>
  • Date: Wed, 18 Aug 2010 14:13:49 -0500

On Wed, Aug 18, 2010 at 1:52 PM, Murat Konar <email@hidden> 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 (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: 
 >stringByReplacingCharactersInRange leading to bus error (From: James Miller <email@hidden>)
 >Re: stringByReplacingCharactersInRange leading to bus error (From: "John C. Randolph" <email@hidden>)
 >Re: stringByReplacingCharactersInRange leading to bus error (From: Murat Konar <email@hidden>)

  • Prev by Date: Trying to capture XML data and convert to a String...
  • Next by Date: Core Animation. issue with scaling
  • Previous by thread: Re: stringByReplacingCharactersInRange leading to bus error
  • Next by thread: Re: stringByReplacingCharactersInRange leading to bus error
  • Index(es):
    • Date
    • Thread