Ok. this one's a challenge.

I have a tableview within a navigation controller.

I push it from the root, where I have an add action that allows me to add a new record. That works fine.

Now what I've tried to do is add this tableview to a tab bar view (without a tab bar controller cuz that won't work) but within the same navigation controller.

So what I want to do is this: Root > TabBarView (loads Tableview) > add new record.

The problem lies in the managed object context, I get the whole "can't find entity error" but I have no idea how to fix it.

I've managed to get the AddRecord modal view controller to show up from the tabBarView, but it presents itself without a navigationbar, whereas if I try to add a record in the solitary tableView (outside of the tabbar) its no problem.

I'm now calling my methods from the TabBarView's navigationBarbuttons, routing through to the tableviews methods.

I know my methods have to be called from the tabBarView instead of the actual tableview now, and they do fire, but I don't know how to manage the MOC when its in a tabView.

Oh, and this is based on coredata recipes and books, so when the add record method is fired, it creates a new MOC to create it, then reintegrates back in the main MOC when you're done.

Any ideas?
['https://Stackoverflow.com/questions/1628058', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/188710/']
In the Intellij configuration that you use to start the server, set 'Server host' to the hostname of your machine. If it is set to 'localhost' you can't connect using the actual hostname of the machine.
You should launch Grails with debug parameters (grailsDebug) and create a Remote debug run configuration in IntelliJ IDEA's Run Configurations combobox. Enter your host name and port there and you can connect now.