GC Basic questions
GC Basic questions
- Subject: GC Basic questions
- From: Nick Rogers <email@hidden>
- Date: Tue, 20 Oct 2009 12:05:26 +0530
Hi,
Since the methods -release, -retain and -autorelease are no-ops with
GC only enabled, How do I release everything associated with an ivar
(pointer to a class) in AppController?
Currently I'm doing it by setting this pointer as nil. Is it ok?
Also when I follow certain steps, this pointer gets a lot of memory
attached, down the line. which gets released (when I set it to nil) as
per Obj-Alloc instrument.
But when following another certain steps, this memory doesn't get
released (when setting this pointer nil), why? With GC only enabled
this should get freed up.
Thanks,
Nick
_______________________________________________
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