I am prototyping an idea on the iPhone but I am at the SQLite vs CoreData crossroads. The main reason is that I can\'t seem to figure out how to do grouping with core data.
If 'posts' is a NSSet of User, you could get the last post with a predicate:
NSDate *lastDate = [userInstance valueForKeyPath:@"@max.date"];
NSSet *resultsTemp = [setOfPosts filteredSetUsingPredicate:[NSPredicate predicateWithFormat:@"fecha==%@", lastDate] ];
The resultsTemp set will contain an object of type Post which has the newest date.