• 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: Doing a NSFetchRequest on a single NSManagedObject
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Doing a NSFetchRequest on a single NSManagedObject


  • Subject: Re: Doing a NSFetchRequest on a single NSManagedObject
  • From: Andrew Sage <email@hidden>
  • Date: Sat, 6 Aug 2005 19:02:06 +0100


Okay it now works in the case I first asked about.

However it does not work in the following case:

Project* project = [projectArrayController selection];

NSEntityDescription *entity = [NSEntityDescription entityForName:@"Task"
inManagedObjectContext:moc];
NSPredicate * predicate;


predicate = [NSPredicate predicateWithFormat:@"(project = %@)", project];

[fetchRequest setEntity: entity];
[fetchRequest setPredicate: predicate];

results = [moc executeFetchRequest:fetchRequest
                             error:&fetchError];

With this code I get back no results when there should be 8 items returned.

Thanks,
Andrew
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Doing a NSFetchRequest on a single NSManagedObject
      • From: mmalcolm crawford <email@hidden>
References: 
 >Doing a NSFetchRequest on a single NSManagedObject (From: Andrew Sage <email@hidden>)
 >Re: Doing a NSFetchRequest on a single NSManagedObject (From: Charilaos Skiadas <email@hidden>)

  • Prev by Date: perl string handle equivilents in cocoa
  • Next by Date: Expanding items in NSOutlineView with Core Data
  • Previous by thread: Re: Doing a NSFetchRequest on a single NSManagedObject
  • Next by thread: Re: Doing a NSFetchRequest on a single NSManagedObject
  • Index(es):
    • Date
    • Thread