Giter Club home page Giter Club logo

Comments (9)

grgcombs avatar grgcombs commented on May 18, 2024

Maybe not exactly in the same vein that you're thinking of, but I thought I'd toss this out there ...

One of my favorite re-implementations of UITableView/Cells is on Matt Gallagher's Cocoa With Love. He makes some great points that explain the unease I feel in my gut every time I look at yet another UITableViewController.

I like the idea of serving up a variety of cells from a single table, without having to cram all those conditional into cellForRowAtIndexPath: ... Moreover, teaching the cell how to think for itself goes a long way to cleaning up a lot of the mess.

Granted, it's on the fringes of MVC-thinking, but it seems to offer more promise than the current approaches we've all taken.

from nimbus.

uri-may avatar uri-may commented on May 18, 2024

RestKit datasource has a nice but imperfect approach of class mapping. The datasource was written on top of the restkit mapping framework to ease the integration with Three20.

This design makes allot of sense when having the MVC module in mind - One can create an Item which acts as the controller. That Item holds the relevant data mapped from the the Model. Fields from the the model are then mapped to an UITableViewCell which is responsible for viewing hence the Viewer. Changes in the model (the adding of fields or changing fields that are not relevant for the controller) won't screw up the controller and the viewer.

I would love to take part in tackling this one, it's an issue I've wasted enormous amount of time in many different projects :)

Cheers,
Uri

P.s
https://github.com/RestKit/RestKit

from nimbus.

grgcombs avatar grgcombs commented on May 18, 2024

Check out the new RKTableController branch to see how we handle mapping and cell generation now. I think it's a bit more elegant than the way it was done for RKThree20

Sent from my iPhone.

On Dec 25, 2011, at 8:34 AM, [email protected] wrote:

RestKit datasource has a nice but imperfect approach of class mapping. The datasource was written on top of the restkit mapping framework to ease the integration with Three20.

This design makes allot of sense when having the MVC module in mind - One can create an Item which acts as the controller. That Item holds the relevant data mapped from the the Model. Fields from the the model are then mapped to an UITableViewCell which is responsible for viewing hence the Viewer. Changes in the model (the adding of fields or changing fields that are not relevant for the controller) won't screw up the controller and the viewer.

I would love to take part in tackling this one, it's an issue I've wasted enormous amount of time in many different projects :)

Cheers,
Uri

P.s
https://github.com/RestKit/RestKit


Reply to this email directly or view it on GitHub:
#30 (comment)

from nimbus.

uri-may avatar uri-may commented on May 18, 2024

Dear Greg,

I'm familier with the RKTableController, but how do u thought about integrate it with nimbus? I mean RestKit needs to lay on some other library that provide the viewer and some of the controller. Does restkit developers plan to give the whole MVC solution?

Uri.

from nimbus.

grgcombs avatar grgcombs commented on May 18, 2024

I don't know enough about nimbus yet to say how it would integrate. It doesn't need to lay on another library really to do the whole MVC. You point it to a UITableView, configure some RKTableViewCellMapping, and flip
a few switches on the RKTableController and you're done. Customizing adds a little extra work but that's it

Sent from my iPhone.

On Dec 26, 2011, at 8:09 AM, [email protected] wrote:

Dear Greg,

I'm familier with the RKTableController, but how do u thought about integrate it with nimbus? I mean RestKit needs to lay on some other library that provide the viewer and some of the controller. Does restkit developers plan to give the whole MVC solution?

Uri.


Reply to this email directly or view it on GitHub:
#30 (comment)

from nimbus.

uri-may avatar uri-may commented on May 18, 2024

Thanks Greg, sounds good I'll try and give it a look :)

Uri May
Sent with Sparrow (http://www.sparrowmailapp.com/?sig)

On Monday, December 26, 2011 at 7:36 PM, Greg Combs wrote:

I don't know enough about nimbus yet to say how it would integrate. It doesn't need to lay on another library really to do the whole MVC. You point it to a UITableView, configure some RKTableViewCellMapping, and flip
a few switches on the RKTableController and you're done. Customizing adds a little extra work but that's it

Sent from my iPhone.

On Dec 26, 2011, at 8:09 AM, uri-may<[email protected] (mailto:[email protected])> wrote:

Dear Greg,

I'm familier with the RKTableController, but how do u thought about integrate it with nimbus? I mean RestKit needs to lay on some other library that provide the viewer and some of the controller. Does restkit developers plan to give the whole MVC solution?

Uri.


Reply to this email directly or view it on GitHub:
#30 (comment)


Reply to this email directly or view it on GitHub:
#30 (comment)

from nimbus.

vgrichina avatar vgrichina commented on May 18, 2024

I think it may be a good idea to provide an implementation of cell that is backed by NIB http://www.hollance.com/2011/03/mhnibtableviewcell-easily-load-table-view-cells-from-nib-files/

from nimbus.

vgrichina avatar vgrichina commented on May 18, 2024

http://blog.atebits.com/2008/12/fast-scrolling-in-tweetie-with-uitableview/

Another problem with this approach that it makes cells unaccessible to blind people. So probably it should at least be disabled when VoiceOver is enabled.

from nimbus.

jverkoey avatar jverkoey commented on May 18, 2024

I don't know if this is really going to be necessary going forward as hardware starts performing well enough not to need it.

from nimbus.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.