One think... avoid using the delegate as a central data gathering object. It's not recommended even by the cocoa guides. You'd better create specific singletons to allow a global access to an information than coupling everything to the main application delegate.
Liking the tutorial but im stuck using xcode 4.2 - followed everything but had to import the appdelegate.h file in the implementation file to work, but when the app runs, i get sigkil and get directed to the main.m file....
@boxed2003 Since you are calling the appDelegate in the view controller you would have to import it. SIGKILL usually is due to an invalid variable. Please download the code and see what you are doing differently
@MacarioPrudencia Hey, I think it shows that way because that file doesn't have an extension. It's hosted on Github so you can see the contents of the file
Thanks for posting. I am learning Core Data on the new 4.2 Xcode. Can you a basic tutorial using this version and incorporate "storyboard". It looks easy, but there aren't a lot of easy to follow good tutorials on video like yours. Thanks in advance...
I updated to Lion and Xcode 4. Things are quite different in it and I cannot get the app which ran in Xcode 3 to run in 4. Now that I'm on Lion, I cannot go back to Xcode 3 either.
Will you be publishing a tutorial on Core Data with Xcode 4?
@ericriutort Actually, there's not a whole lot of difference in creating a core data app in Xcode4. I just tried running the app in Xcode 4 with Lion and it ran without any problems. Are you having any specific issue?
@Wakka12321 Sure you can. You would just have to add all the code manually that is generated by Xcode when you use the application template. Which would mean adding all the methods in the AppDelegate and creating the Data Model. It's a bit of work but in the long run you will be glad you made the changes.
Love the tutorial, easy to follow, now have a better grasp of core data, thank you. As a complete amateur, I do have a question for you: The code builds fine with no errors, however, at runtime it all goes a bit wrong:
Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'executeFetchRequest:error: A fetch request must have an entity.'
*** Call stack at first throw:
Any ideas as to where I have gone wrong. I would really appreciate the help.
@e3dnow Glad you liked the tutorial! As for your error in your Xcode Data Model please make sure your entity names match the one in your Fetch request because it is case sensitive.
NSError *error = nil; if (![self.fetchedResultsController performFetch:&error]) and the error is saying Thread1: Program received signal "Sigabrt". I did it couple of time with the same error. Can we get the source code?
@amb1s1 Usually a "Sigabrt" error refers to referencing an object that has been released from memory or one that has not been allocated. You can download the source code from my github repo abijlani/recipe
would be nice to also create a quick tutorial on how to fetch data and how to manipulate data (as I've heard, there shouldn't be a problem to check at what state data exists) - truly enjoyed this tutorial. well explained
everything was fine and i am new to coredata... can u upload a video to see the saved data from objects
chinna834 3 weeks ago
This has been flagged as spam show
One think... avoid using the delegate as a central data gathering object. It's not recommended even by the cocoa guides. You'd better create specific singletons to allow a global access to an information than coupling everything to the main application delegate.
x87alpha1 1 month ago
Comment removed
x87alpha1 1 month ago
Hi,
Liking the tutorial but im stuck using xcode 4.2 - followed everything but had to import the appdelegate.h file in the implementation file to work, but when the app runs, i get sigkil and get directed to the main.m file....
Any ideas??
boxed2003 1 month ago
@boxed2003 Since you are calling the appDelegate in the view controller you would have to import it. SIGKILL usually is due to an invalid variable. Please download the code and see what you are doing differently
bijlaniamit 1 month ago
good work, but how can we vieuw our database now and display all the recipes?
can you explain that please
omgCaymanChannel 1 month ago
this is the by far the best and simplest explanation for Core Data i ever seen. its even better than the apple documents and tutorial videos.
but i hope for more using Xcode 4.3 please.
TicketAirline 1 month ago
Excellent job. You should make more of these!
LiquorWreckedEmGood 2 months ago
this is great! Thank you.
devgohan 3 months ago
Comment removed
MacarioPrudencia 3 months ago
@MacarioPrudencia Hey, I think it shows that way because that file doesn't have an extension. It's hosted on Github so you can see the contents of the file
bijlaniamit 3 months ago
Thanks for posting. I am learning Core Data on the new 4.2 Xcode. Can you a basic tutorial using this version and incorporate "storyboard". It looks easy, but there aren't a lot of easy to follow good tutorials on video like yours. Thanks in advance...
nappychef35 4 months ago
Awesome, awesome video and code!
Thank you very much!!!
I have watched Stanford's Paul Hegarty and Madison's Dr. Brad Larson. This is equally valuable.
ToughestIraqVet 5 months ago
This was a *great* tutorial!
TheSacredSteve 5 months ago
Excellent !!! very nice explained the concept. Thank you. Need more videos on core data
iphonehits 5 months ago
Again, thanks for the tutorial! Is there an easy way to enter the recipe into the database to make it a "read only" recipe app? Thanks!
senior6932 5 months ago
Great video...
I updated to Lion and Xcode 4. Things are quite different in it and I cannot get the app which ran in Xcode 3 to run in 4. Now that I'm on Lion, I cannot go back to Xcode 3 either.
Will you be publishing a tutorial on Core Data with Xcode 4?
ericriutort 6 months ago
@ericriutort Actually, there's not a whole lot of difference in creating a core data app in Xcode4. I just tried running the app in Xcode 4 with Lion and it ran without any problems. Are you having any specific issue?
bijlaniamit 6 months ago
Great info....thanks!
senior6932 6 months ago in playlist senior6932's Favorited Videos
Excellent tutorial. The best I have seen around.
drskywalkerluke 6 months ago
Great tutorial. You should make more if you have the time! :)
gul091 6 months ago
what if I want to do this for a application that already exist. Can I add "Use Core Data" after creation?
Wakka12321 6 months ago
@Wakka12321 Sure you can. You would just have to add all the code manually that is generated by Xcode when you use the application template. Which would mean adding all the methods in the AppDelegate and creating the Data Model. It's a bit of work but in the long run you will be glad you made the changes.
bijlaniamit 6 months ago
wow best tutorial ive EVER seen! thanks a lot! please make more i would really appreciate it!
kingofmagic1 7 months ago
that was great, but dont you have a leak there with the barbutton item :D
iapplethis 8 months ago
now we need part 2! how to fetch
toprepublic 8 months ago
This is brilliant! Thank you very much!
Sometimes things just need to be broken down and you did it perfectly. Keep the tutorials coming!
jamescmartinez 8 months ago
Concise, clear, to the point... Excellent tutorial.
hantzley 9 months ago
Great Job man. You are simply awesome
joebm08 9 months ago 4
@joebm08 Thanks! Glad you liked it
bijlaniamit 9 months ago
awesome tutorial, seemed like such a hornets nest from apples documentation, but now i'll give it a shot
TheSlimed1 10 months ago
Great tutorial! where can i get the source code?
Simongislen 10 months ago
Great tutorial! where can i get the source code?
Simongislen 10 months ago
@Simongislen You can download the source code from github.com/abijlani/recipe
bijlaniamit 10 months ago
Hi Amit
Love the tutorial, easy to follow, now have a better grasp of core data, thank you. As a complete amateur, I do have a question for you: The code builds fine with no errors, however, at runtime it all goes a bit wrong:
Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'executeFetchRequest:error: A fetch request must have an entity.'
*** Call stack at first throw:
Any ideas as to where I have gone wrong. I would really appreciate the help.
Edd
e3dnow 10 months ago
@e3dnow Glad you liked the tutorial! As for your error in your Xcode Data Model please make sure your entity names match the one in your Fetch request because it is case sensitive.
bijlaniamit 10 months ago
IM getting an error
NSError *error = nil; if (![self.fetchedResultsController performFetch:&error]) and the error is saying Thread1: Program received signal "Sigabrt". I did it couple of time with the same error. Can we get the source code?
amb1s1 10 months ago
@amb1s1 Usually a "Sigabrt" error refers to referencing an object that has been released from memory or one that has not been allocated. You can download the source code from my github repo abijlani/recipe
bijlaniamit 10 months ago
Great video. Getting up and going can be difficult process. Your video does a great job at providing the initial insights need to things started
cronis7 11 months ago
would be nice to also create a quick tutorial on how to fetch data and how to manipulate data (as I've heard, there shouldn't be a problem to check at what state data exists) - truly enjoyed this tutorial. well explained
eiefant 11 months ago
@eiefant Thank! Glad you enjoyed the tutorial. Will look into making another one on fetching data.
bijlaniamit 11 months ago