• 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
Question about garbage collection
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Question about garbage collection


  • Subject: Question about garbage collection
  • From: Michael Abendroth <email@hidden>
  • Date: Sun, 3 Jan 2010 18:59:01 +0100

Hi all,

When I write something like:

while (true) {
   NSString *s = [[NSString alloc] initWithString:@"applejuice"];
}

Will s be garbage collected? If not, how can I make sure it does get
deallocated by garbage collection.
_______________________________________________

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

  • Follow-Ups:
    • Re: Question about garbage collection
      • From: Oftenwrong Soong <email@hidden>
    • Re: Question about garbage collection
      • From: Graham Cox <email@hidden>
    • Re: Question about garbage collection
      • From: Bill Bumgarner <email@hidden>
  • Prev by Date: Re: Custom NSFormatter classes
  • Next by Date: Re: Question about garbage collection
  • Previous by thread: Re: How do I bind custom view properties to an NSCollectionViewItem?
  • Next by thread: Re: Question about garbage collection
  • Index(es):
    • Date
    • Thread