Question about garbage collection
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