Welcome, Guest
Username Password: Remember me

Advantages of using or not using core data with SCTableView
(1 viewing) (1) Guest
  • Page:
  • 1

TOPIC: Advantages of using or not using core data with SCTableView

Advantages of using or not using core data with SCTableView 1 year, 6 months ago #1

Evening

I was passed on the information about SC today, so have been watching the videos - very impressive.

One video using just SCTableView and the video with SCTableView and Core Data appeared to be the same thing.

My question is -what are the advantages or disadvantages of using SCTableView with Core Data as I did not see any.

Iain
  • ihmunro
  • OFFLINE
  • Expert Boarder
  • Posts: 135
  • Karma: 0

Re: Advantages of using or not using core data with SCTableView 1 year, 6 months ago #2

Hi Iain,

If I understand you correctly, what you're asking is what are the pros and cons of using Core Data versus using normal objects or SQLite. In brief:

Core Data pros:
* You create the model visually which is much faster than creating classes from code. It's also a lot easier to maintain.
* Core Data automatically handles all persistence issues for you. With objects or SQLite you will need to manually perform data persistence.
* Core Data automatically creates and maintains relationships between entities.
* Core Data provides you with the best of both worlds, data persistence as an SQLite database, and an object graph at runtime which makes it a lot easier to access the different entity attributes.

Core Data cons:
* In my opinion, Core Data will work well for you in more than 95% of the cases. Its only drawbacks appear when you have a big number of entities (10,000+) and you're trying to do batch operations on them, in which case using SQLite SQL statements directly will be much faster. Also, developing the user interface for complex Core Data applications can be a bit involving (especially with several detail views), but that has been completely taken care of with Sensible TableView.

Also everyone please feel free to add your opinion or anything I've missed to this thread, thanks!
  • tarekskr
  • OFFLINE
  • Administrator
  • Posts: 2402
  • Karma: 72

Re: Advantages of using or not using core data with SCTableView 1 year, 5 months ago #3

Hi Tarek

What I was referring to was the difference between using Core Data and SCTableView.

Iain
  • ihmunro
  • OFFLINE
  • Expert Boarder
  • Posts: 135
  • Karma: 0

Re: Advantages of using or not using core data with SCTableView 1 year, 5 months ago #4

Oh there is a huge difference

If Sensible TableView is not used with Core Data, the same sample Tasks application that was created in the Core Data video tutorial (www.sensiblecocoa.com/video-tutorials/wa...ata-integration.html) in just a few minutes, would actually take very experienced iPhone developers many hours to develop, if not a good few days. We have got this exact feedback from many of our customers.

Also, just to make sure I understood your question correctly, Sensible TableView complements Core Data, it does not replace it. Core Data provides the object/entity creation and storage, while Sensible TableView handles all the user interface generation.
  • tarekskr
  • OFFLINE
  • Administrator
  • Posts: 2402
  • Karma: 72
  • Page:
  • 1
Time to create page: 1.43 seconds