Re: Memory management puzzle
Re: Memory management puzzle
- Subject: Re: Memory management puzzle
- From: Andy Lee <email@hidden>
- Date: Wed, 26 Nov 2008 23:35:20 -0800
On Nov 26, 2008, at 6:49 PM, DKJ wrote:
I've got something this in my code, which is run several times by
the app:
UIView *subView = [[MyView alloc] initWithFrame:frame];
[theView addSubview:subView];
[subView release];
Later on this happens:
[subView removeFromSuperView];
subView = nil;
I assume this is just a typo because you spelled it correctly (twice)
later in your message, but on the off chance that you implemented a
removeFromSuperView method, intending it to be an override, I wanted
to point out that it's removeFromSuperview, not removeFromSuperView.
--Andy
_______________________________________________
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