[Newbie Q] Memory Management in Cocoa
[Newbie Q] Memory Management in Cocoa
- Subject: [Newbie Q] Memory Management in Cocoa
- From: Flemming Bengtsson <email@hidden>
- Date: Tue, 5 Nov 2002 19:22:09 +0100
Hi All,
I'm getting a little bit confused about when to dealloc an instance.
It's obvious that instances created like [[foo alloc] init ]; should be
deallocated when done with.
But what about instances created like:
NSString * aNSString = [NSString stringWithCString:"Hello" length:5];
Regards
Flemming Bengtsson, FLB Software-udvikling
http://www.flbsoftwareudvikling.dk/
iChat/AOL: email@hidden
Phone: +45 24 82 24 25
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.