• 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
copy and release
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

copy and release


  • Subject: copy and release
  • From: Michael Horn <email@hidden>
  • Date: Thu, 02 Aug 2001 18:40:39 -0700

When you copy an object. Eg,

stringB = [stringA copy];

Does this automatically autorelease stringB or is this just like doing

stringB = [[NSString alloc] initWithString: stringA];

?

Thanks.


  • Follow-Ups:
    • Re: copy and release
      • From: "David P. Henderson" <email@hidden>
  • Prev by Date: Quick Question
  • Next by Date: NSOutlineView is invisible...sometimes
  • Previous by thread: Re: Quick Question
  • Next by thread: Re: copy and release
  • Index(es):
    • Date
    • Thread