Removing an Object with A Certain Title from an NSTreeController.

2009-10-10 Thread Joshua Garnham
Hi, I am wondering how I could delete an object depending on it's title for the CoreData 'name' property I have. To Add an Object I use this code: NSManagedObjectContext *moc = [self managedObjectContext]; JGManagedObject *theParent = [NSEntityDescription

Re: Removing an Object with A Certain Title from an NSTreeController.

2009-10-10 Thread Joshua Garnham
Ok, I'll post the actual code that I am using and is giving the problem. Here it is: for(NSString *title in oldTasks) { // Get the moc and prepare a fetch request for the required entity NSManagedObjectContext *moc = [self managedObjectContext]; NSEntityDescription

Re: Removing an Object with A Certain Title from an NSTreeController.

2009-10-10 Thread Quincey Morris
On Oct 10, 2009, at 05:28, Joshua Garnham wrote: NSPredicate *predicate = [NSPredicate predicateWithFormat:@title IN %d, oldTasks]; %d? oldTasks is a NSArray. ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post