Re: Having problem with fetch request in NSDocument based application
Re: Having problem with fetch request in NSDocument based application
- Subject: Re: Having problem with fetch request in NSDocument based application
- From: "I. Savant" <email@hidden>
- Date: Fri, 4 Sep 2009 10:31:58 -0400
On Sep 4, 2009, at 9:47 AM, Clayton Leitch wrote:
fetchedObjects = nil;
...
fetchRequest = [[NSFetchRequest alloc] init];
...
fetchedObjects = [context executeFetchRequest:fetchRequest
error:&error];
...
[fetchRequest release];
One other thing (memory-management-related). You seem not to be
using garbage collection (since you release your fetch request), but
your example indicates you don't appear to be retaining your
fetchedObjects array (or releasing an existing one at the top of your
method). You might want to think about that more closely.
--
I.S.
_______________________________________________
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