Re: Where to release in UIView
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