• 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
Core Data & IB in prefs pane ("Cannot perform operation without a managed object context")
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Core Data & IB in prefs pane ("Cannot perform operation without a managed object context")


  • Subject: Core Data & IB in prefs pane ("Cannot perform operation without a managed object context")
  • From: Rick Mann <email@hidden>
  • Date: Fri, 28 Mar 2008 13:18:59 -0700

I didn't get any responses, so I'm trying again.

I'm clearly missing some link in the whole Core Data thing. I'm trying to use it in a Prefs Pane. I've written no code, just set things up with the data model editor and IB. Is there something NSDocument does to support Core Data that an NSPrefsPane wouldn't do by default?

Basically, when I click my "add" button, although it's wired to NSArrayController's add: action, it doesn't seem to actually add anything. I get "3/28/08 1:17:58 PM System Preferences[7428] Cannot perform operation without a managed object context". I think I get what that's telling me, but how do I set one up?

In the tutorial, it seemed to "just work," and I didn't set anything up explicitly. Thanks!


---------------------------- Original message:

I'm trying to use what I learned yesterday about Core Data in a System Prefs pane. I created an Entity data model, and then tried to add an NSTable and some buttons and wire them up the same way I'd seen the Core Data Entity tool do it in IB. But, it didn't work.

So I tried using the Core Data Entity tool to let IB do it, and it disables the Add and Remove buttons.

The only difference I can spot is in yesterday's project, the File's Owner is an NSDocument. Today, it's a PrefsPane.

Is it possible to use this stuff in a prefs pane? What am I missing?

Thanks!

--
Rick

_______________________________________________

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: Core Data & IB in prefs pane ("Cannot perform operation without a managed object context")
      • From: Keary Suska <email@hidden>
    • Duplicating NSPersistentDocument Core Data support (was: Core Data & IB in prefs pane ("Cannot perform operation without a managed object context"))
      • From: Rick Mann <email@hidden>
  • Prev by Date: Table Header-Style View for a Label
  • Next by Date: Duplicating NSPersistentDocument Core Data support (was: Core Data & IB in prefs pane ("Cannot perform operation without a managed object context"))
  • Previous by thread: Re: Table Header-Style View for a Label
  • Next by thread: Duplicating NSPersistentDocument Core Data support (was: Core Data & IB in prefs pane ("Cannot perform operation without a managed object context"))
  • Index(es):
    • Date
    • Thread