• 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: Scott Andrew <email@hidden>
  • Date: Sat, 18 Jul 2009 12:00:17 -0700

There is no difference between initing them in initWithFrame and awakeFromNib. You would release them in the same location. if they need to be around for the life time of the view then release them dealloc. If not call release before you leave awakeFromNib...

Scott Andrew
On Jul 18, 2009, at 11:09 AM, DKJ wrote:

On 18-Jul-09, at 8:50 , Fritz Anderson wrote:
You have to release shadingAreas. You alloc'ed it, you own it.


Yes, I realise that. What I'm wondering is where to do it, since it's initialised in the awakeFromNib method, rather than in initWithFrame:.

The NSDictionary does store the CGMutablePathRefs quite nicely, although the compiler complains about it.

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

_______________________________________________

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: 
 >Where to release in UIView (From: DKJ <email@hidden>)
 >Re: Where to release in UIView (From: Fritz Anderson <email@hidden>)
 >Re: Where to release in UIView (From: DKJ <email@hidden>)
 >Re: Where to release in UIView (From: Fritz Anderson <email@hidden>)
 >Re: Where to release in UIView (From: DKJ <email@hidden>)

  • Prev by Date: Re: Where to release in UIView
  • Next by Date: Re: Where to release in UIView
  • Previous by thread: Re: Where to release in UIView
  • Next by thread: Re: Where to release in UIView
  • Index(es):
    • Date
    • Thread