• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
iPhone TabBarController and NavigationController with Core Data
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

iPhone TabBarController and NavigationController with Core Data


  • Subject: iPhone TabBarController and NavigationController with Core Data
  • From: Sandro Noël <email@hidden>
  • Date: Wed, 23 Jun 2010 23:38:15 -0400

Greetings.

I've been at this for a week trying to figure things out and I'm getting nowhere.
This is my first iPhone application so please be gentle.

ok,
I created the application from the tab bar application template, and checked core data stack support.
created the model and imported startup data.

Second I added navigation controllers to the Tab bar as seen in an example I've found on the internet or the apple documentation.
I've connected all the nib files and the application works nicely when built and run in the simulator.

The time has come to populate the table views and i'm completely confused on how to go about it.

the layout,

MainWindow.xib:
Tab bar contorller
	Navigation controller
		View controller (loads SearchView)
	(other navigation controllers)...


SearchView.xib:
	TableViewController (custom controller defined)
		TableView
			SearchBar

now, inside the tableViewController i have a fetchResultController configured, but this guy needs a managedObjectContext which is in my Application delegate
I've seen examples where the tableview exposes a property to set the local managedObjectContext but all the way back to the applicationDelegate
is a place where no events happen where i can set the property on that specific TableViewcontroller.

I'm sorry if i don't explain this correctly, i'm so lost i don't even know where to look now.
looking at the examples (unless i've missed it) it seems i'm trying to so something extraordinary.
or so easy there is no need for an example ( then i'm really off track ).

Can someone please give me a pointer on how to get my managedObjectCOntect to my tableViewControllers?

best regards.
Sandro.
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: iPhone TabBarController and NavigationController with Core Data
      • From: Sandro Noël <email@hidden>
  • Prev by Date: Finder open / close notifications
  • Next by Date: Re: Finder open / close notifications
  • Previous by thread: Re: Finder open / close notifications
  • Next by thread: Re: iPhone TabBarController and NavigationController with Core Data
  • Index(es):
    • Date
    • Thread