• 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: Beginner question about strings
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Beginner question about strings


  • Subject: Re: Beginner question about strings
  • From: mmalcolm crawford <email@hidden>
  • Date: Sun, 4 Jun 2006 15:45:18 -0700


On Jun 4, 2006, at 3:41 PM, D.K. Johnston wrote:

I'm not sure about the status of strings returned by methods like "substringFromIndex:". I know that they're new strings. But how long do they last? Are they autoreleased? If an object method returns one of these strings to another object, should the string be sent a "retain" message? etc.

This is covered in considerable detail in the documentation:

<http://developer.apple.com/documentation/Cocoa/Conceptual/ MemoryMgmt/index.html>
et al.


mmalc


_______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
References: 
 >Beginner question about strings (From: "D.K. Johnston" <email@hidden>)

  • Prev by Date: Beginner question about strings
  • Next by Date: Re: Beginner question about strings
  • Previous by thread: Beginner question about strings
  • Next by thread: Re: Beginner question about strings
  • Index(es):
    • Date
    • Thread