Re: Outlets / IBOutlet declarations (was Re: Interface Builder & Wiring Objects)
Re: Outlets / IBOutlet declarations (was Re: Interface Builder & Wiring Objects)
- Subject: Re: Outlets / IBOutlet declarations (was Re: Interface Builder & Wiring Objects)
- From: Jonathan Hess <email@hidden>
- Date: Mon, 17 Nov 2008 21:52:52 -0800
On Nov 18, 2008, at 12:43 AM, Brian Stern wrote:
On Nov 18, 2008, at 12:34 AM, Jonathan Hess wrote:
The solution to a memory leak should never be an unbalanced release.
What I did to fix this was to add all of the properties to all of
the outlets so they'd all be retained through those properties.
Then I added all the releases to all the deallocs to match those
retains.
From the later messages in this thread, it looks you didn't insert an
unbalanced retain after all. The retains and releases were balanced,
but the code wasn't executing as expected because the setters weren't
being used because the outlets had different names than the properties.
If you do encounter a leak like this in the future, please head my
advice. Inserting a unbalanced retain or release might fix a symptom,
but is likely to come back up as a hard to debug problem in the future.
Good Luck -
Jon Hess
--
Brian Stern
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
_______________________________________________
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