Wrox Programmer Forums
|
BOOK: Professional iPhone and iPad Database Application Programming
This is the forum to discuss the Wrox book Professional iPhone and iPad Database Application Programming by Patrick Alessi; ISBN: 978-0-470-63617-6
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Professional iPhone and iPad Database Application Programming section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old June 15th, 2011, 08:53 PM
Registered User
 
Join Date: Jun 2011
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default viewDidUnload, nil and release

The sample code doesn't seem correct on page 175 (ViewTaskController.m)

viewDidUnload just nils managedObjectContext and managedTaskObject rather than releasing it first.

In dealloc, they do a release, but this won't do anything if viewDidUnload was called first.

Shouldn't they be released before being set to nil?

Dean

Last edited by pulsifer; June 15th, 2011 at 08:55 PM.. Reason: Typo and missing information





Similar Threads
Thread Thread Starter Forum Replies Last Post
File release Jeremy.Carter Visual Basic 2005 Basics 2 June 4th, 2011 09:15 AM
Removing attribute xsi:nil=true chandra_perni XSLT 10 September 2nd, 2009 12:05 PM
Release problem jeusdi .NET Framework 1.x 0 February 27th, 2007 11:19 AM
Release date Daniel.K62 BOOK: Beginning C# 2005 Databases 2 October 30th, 2006 03:00 PM
validateOnParse versus xsi:nil JaKKe XML 0 March 7th, 2006 07:23 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.