Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

Draw This
($0.99)

Make your own iPhone apps
and run them live!
(free)

Pic Frame Dynamo: Photo Editing
($0.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum

View Single Post
Old 08-09-2009, 06:34 PM   #1 (permalink)
Howell
Registered Member
 
Join Date: Aug 2009
Posts: 3
Howell is on a distinguished road
Default Core data in view based app

I am having trouble passing a managedObjectContext to a view controller. The examples I found in the IDC pass to a table view controller only and the templates found in Xcode only have 'Use Core Data for storage' options for navigation and window based applications.

Does anyone know if it is possible to have core data in a view based app and if so how do I pass the managedObjectContext to the view controller?

When I use
Quote:
NSManagedObjectContext *context = [self managedObjectContext];
and
Quote:
myViewController.managedObjectContext = context;
I get the error "error: accessing unknown 'setManagedObjectContext' class method". Thanks for the help.

Last edited by Howell; 08-10-2009 at 10:35 AM. Reason: Wording fix
Howell is offline   Reply With Quote
 

» Advertisements
» Stats
Members: 175,022
Threads: 93,867
Posts: 401,928
Top Poster: BrianSlick (7,963)
Welcome to our newest member, mikel888
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 11:00 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.