• 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: Where to release in UIView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Where to release in UIView


  • Subject: Re: Where to release in UIView
  • From: DKJ <email@hidden>
  • Date: Sat, 18 Jul 2009 12:56:19 -0700

Thanks to all who replied. I was concerned whether the object might somehow get re-instantiated from the nib without dealloc being called first. If I understand memory management correctly, that would produce a leak.

I'm assuming that the object wouldn't be re-instantiated without its previous instantiation being released. But I'd sleep better having an expert opinion.

dkj


On 18-Jul-09, at 7:59 , DKJ wrote:

I've got a UIView object that uses an NSDictionary. The UIView is instantiated from a nib, so I initialise the dictionary in awakeFromNib, since the initWithFrame: method is never called. Is it appropriate to release this dictionary in the UIView dealloc method?

dkj
_______________________________________________

_______________________________________________

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


  • Follow-Ups:
    • Re: Where to release in UIView
      • From: BJ Homer <email@hidden>
References: 
 >Where to release in UIView (From: DKJ <email@hidden>)

  • Prev by Date: Re: Custom NSArrayController - Dynamic Class?
  • Next by Date: NSDateFormatter issue (bug maybe)?
  • Previous by thread: Re: Where to release in UIView
  • Next by thread: Re: Where to release in UIView
  • Index(es):
    • Date
    • Thread