Core Data without headaches

702 views

Published on

Core Data Love !
Meetup
www.meetup.com/iLove-iOS/

Published in: Technology, Spiritual
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
702
On SlideShare
0
From Embeds
0
Number of Embeds
3
Actions
Shares
0
Downloads
10
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Core Data without headaches

  1. 1. CoreData Love!CoreData Without headaches
  2. 2. About Me@abraham_barrera
  3. 3. iOS Developer
  4. 4. ContinuumLemontech
  5. 5. I LoveMy Family
  6. 6. I LoveMy Girlfriend
  7. 7. I LoveGrand Central Dispatch
  8. 8. I LoveBlocks!
  9. 9. I hate
  10. 10. I hateWars
  11. 11. I hateStoryboards
  12. 12. I hateCoreData
  13. 13. I hatedCoreData
  14. 14. CoreData Love!CoreData Without headaches
  15. 15. We needStore Data
  16. 16. From scratch
  17. 17. ¿CoreData?
  18. 18. PersistenceFramework
  19. 19. ¿Persistence? Framework
  20. 20. Not really
  21. 21. end of presentation
  22. 22. ObjectManager
  23. 23. Lifecycle
  24. 24. Search
  25. 25. Relations
  26. 26. Persistence
  27. 27. Persistence
  28. 28. In-Memory
  29. 29. Work in-Memory
  30. 30. Create / Update / Delete
  31. 31. Relations(in-memory)
  32. 32. Relations(no search)
  33. 33. user.profile.description
  34. 34. Users ... ( where ) .. " profile.name = %@ ", profile.objectID
  35. 35. Users ... ( where ) .. " profile.name = %@ ", profile.objectID (No Joins)
  36. 36. CoreData != Database
  37. 37. Objects Manager vsStore/fetch Data
  38. 38. In-Memory vs On-Disk
  39. 39. Store Objectswith behaviors vs Only data
  40. 40. NonTransactional vsTransactional
  41. 41. All operations in Memory vs Operationswithout loading data
  42. 42. 5 BaseElements
  43. 43. Model
  44. 44. NSManagedObject
  45. 45. managedObjectModel
  46. 46. persistentStoreCoordinator
  47. 47. managedObjectContext
  48. 48. Model
  49. 49. NSManagedObject
  50. 50. managedObjectModel
  51. 51. persistentStoreCoordinator
  52. 52. managedObjectContext
  53. 53. Save a new Record
  54. 54. Show me the code
  55. 55. Some Issues
  56. 56. Data typesNSManagedObject
  57. 57. Too verbose
  58. 58. Too verbose
  59. 59. Tools
  60. 60. MoGeneratorhttps://github.com/rentzsch/mogenerator $ brew install mogenerator
  61. 61. mogenerator --modelCoreDataInLove/Model/CoreDataInLove.xcdatamodeld/CoreDataInLove.xcdatamodel -OCoreDataInLove/NewModel -MCoreDataInLove/NewModel/Machine--template-var arc=true
  62. 62. Objective-Recordhttps://github.com/mneorr/Objective-Record

×