• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Having problem with fetch request in NSDocument based application
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Having problem with fetch request in NSDocument based application (From: Clayton Leitch <email@hidden>)

  • Prev by Date: Re: Having problem with fetch request in NSDocument based application
  • Next by Date: Re: Binding table columns that change at runtime
  • Previous by thread: Re: Having problem with fetch request in NSDocument based application
  • Next by thread: Re: Having problem with fetch request in NSDocument based application
  • Index(es):
    • Date
    • Thread