Scott, Please reduce this down to a test case so that we might try and reproduce what you are observing.
Thanks! davez On Mar 24, 2012, at 1:17 AM, Scott Andrew <scottand...@roadrunner.com> wrote: > I seem to have hit a few limitations with ARC. > > 1.) Subclasses of CALayer are not being fully released which causes my view > controller to remain around. There is still some small bit of memory being > left behind. Even if I do the following simple code: > > -(void) viewDidLoad { > > [super viewDidLoad]; > > CNFooLayer* foo = [CNFooLayer layer]; > > [self.view.layer addSublayer:cup]; > } > > Cup is: > > @interface CNFooLayer : CALayer > @end > > > If you change the above too: > > [super viewDidLoad]; > > CALayer* foo = [CALayer layer]; > > [self.view.layer addSublayer:cup]; > > all is good. > > If I watch the object list the object allocations you can see that there is > residual memory left behind and my view controller is still around (even > though dealloc was called). > > 2.) I have a simple class with lost of properties that if i alloc and init it > will cause my hand created view controller to stick around. Remove the alloc > in the view controller and all is fine. > > I seem to be at the point now where need to remove arc and go back to retain, > release. The weird thing is leaks has no leaks, watching for my > viewController in statistics shows that it has gone away. However heapshot > shows residual and so does the object list. > > _______________________________________________ > > Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) > > 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: > https://lists.apple.com/mailman/options/cocoa-dev/zarzycki%40apple.com > > This email sent to zarzy...@apple.com _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com