Update AppDelegate.m

added core data snippets