Comments (9)
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.
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.
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,
UriP.s
https://github.com/RestKit/RestKit
Reply to this email directly or view it on GitHub:
#30 (comment)
from nimbus.
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.
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.
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 itSent 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.
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.
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.
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)
- Three20 Migration guide link broken HOT 5
- NIQueryDictionaryFromStringUsingEncoding uses iOS 9 deprecated API HOT 2
- generate_namespace_generator filtering necessary symbols
- Migration to Swift 3
- It seems some api not fit the Swift 3...
- Use accessibilityLabel when available in NIAttributedLabel
- when can support AFNetworking3.0 HOT 1
- when can support AFNetworking3.0?
- NISwitchFormElement property attribute
- Add to Project Page is Down
- afn 3.0
- NIRuntimeClassModifications.m class utilizing method_exchangeImplementations() instead of method_setImplementation() for swizzling!
- NIAttributedLabel has more text truncation than needed after resizing.
- Test issue, please ignore
- Make Nimbus build successfully with -Wvla HOT 1
- 无法正常编译 HOT 3
- Add nullability annotations to NICollectionViewModel
- Apple generates warnings for submissions of apps that use UIWebView APIs HOT 7
- [[UIApplication sharedApplication] openURL:] causing crashes with Xcode 11 iOS 13 update
- latest tag
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nimbus.