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 April 26th, 2011, 02:10 PM
Registered User
 
Join Date: Apr 2011
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default Filtering Results with NSPredicate - Chapter 7 p.204/5

When I use the code in the book with iOS 4.3 I get the following error:

Code:
2011-04-26 12:02:56.470 Tasks[379:207] FATAL ERROR: The persistent cache of section information does not match the current configuration.  You have illegally mutated the NSFetchedResultsController's fetch request, its predicate, or its sort descriptor without either disabling caching or using +deleteCacheWithName:

2011-04-26 12:02:56.471 Tasks[379:207] fetch request = <NSFetchRequest: 0x4d2a910> (entity: Task; predicate: (priority == 3); sortDescriptors: ((
    "(text, descending, compare:)"
)); batch size: 20; type: NSManagedObjectResultType; )
From some googling it appears that I needed to add the following at the top of the method:

Code:
[NSFetchedResultsController deleteCacheWithName:nil];
Am I doing something wrong or is this something that changed in a version of iOS between the book's development and now?





Similar Threads
Thread Thread Starter Forum Replies Last Post
Filtering results spinout XSLT 9 October 30th, 2010 07:23 AM
filtering results? chris davies Classic ASP Basics 2 July 4th, 2006 09:41 AM
Chpt 6 pg 204-205 harrison4411 BOOK: Beginning ASP.NET 2.0 BOOK VB ISBN: 978-0-7645-8850-1; C# ISBN: 978-0-470-04258-8 2 June 10th, 2006 09:52 AM
Filtering FSO results nancy Classic ASP Components 3 October 3rd, 2005 10:15 PM
Chapter 4 - Filtering example pehrig BOOK: Professional SQL Server Reporting Services ISBN: 0-7645-6878-7 6 September 24th, 2004 02:39 PM





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