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 a

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

2009-10-10 Thread Joshua Garnham
_ From: Abizern To: Joshua Garnham Sent: Saturday, 10 October, 2009 13:04:06 Subject: Re: Removing an Object with A Certain Title from an NSTreeController. 2009/10/10 Joshua Garnham >Hi, > >>I am wondering how I could delete an object depending on it's title for th

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 insertNewObjectForEntityForName:@"p