• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Memory management puzzle
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Memory management puzzle (From: DKJ <email@hidden>)

  • Prev by Date: Re: Newbie question: Object as input arguments
  • Next by Date: Re: Using a string as filepath
  • Previous by thread: Re: Memory management puzzle
  • Next by thread: Re: Memory management puzzle
  • Index(es):
    • Date
    • Thread