UITableView Core Data reordering

Posted by PCWiz on Stack Overflow See other posts from Stack Overflow or by PCWiz
Published on 2010-03-02T04:38:36Z Indexed on 2010/03/08 17:51 UTC
Read the original article Hit count: 1060

I know this question has been asked before, and I took a look at the answer to this question. However, I'm still confused as to how to implement reordering with a UITableView in a Core Data project. What I know is that I need to have a "displayOrder" attribute in my Entity to track the order of items, and I need to enumerate through all the objects in the fetched results and set their displayOrder attribute.

In the given code in the question I linked to, the table view delegate method calls a method like this [self FF_fetchResults];, and the code for that method is not given so its hard to tell what exactly it is.

Is there any sample code that demonstrates this? That would be simpler to look at than sharing large chunks of code.

Thanks

© Stack Overflow or respective owner

UITableView Core Data reordering

Posted by PCWiz on Stack Overflow See other posts from Stack Overflow or by PCWiz
Published on 2010-03-02T04:38:36Z Indexed on 2010/03/08 1:18 UTC
Read the original article Hit count: 1060

I know this question has been asked before, and I took a look at the answer to this question. However, I'm still confused as to how to implement reordering with a UITableView in a Core Data project. What I know is that I need to have a "displayOrder" attribute in my Entity to track the order of items, and I need to enumerate through all the objects in the fetched results and set their displayOrder attribute.

In the given code in the question I linked to, the table view delegate method calls a method like this [self FF_fetchResults];, and the code for that method is not given so its hard to tell what exactly it is.

Is there any sample code that demonstrates this? That would be simpler to look at than sharing large chunks of code.

Thanks

© Stack Overflow or respective owner

Related posts about objective-c

Related posts about cocoa-touch