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

2008-03-29 Thread Keary Suska
on 3/28/08 2:18 PM, [EMAIL PROTECTED] purportedly said: > 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

Re: Duplicating NSPersistentDocument Core Data support (was: Core Data & IB in prefs pane ("Cannot perform operation without a managed object context"))

2008-03-28 Thread Rick Mann
On Mar 28, 2008, at 1:54 PM, I. Savant wrote: The problem is that you're observing document-based behavior as an example for building a non-document based application (a pref pane). How about creating a Core Data Cocoa Application (instead of document-based) and examining it? It'll show you how

Duplicating NSPersistentDocument Core Data support (was: Core Data & IB in prefs pane ("Cannot perform operation without a managed object context"))

2008-03-28 Thread Rick Mann
I figured out my problem. There is, in fact, support in NSPersistentDocument for Core Data. I'd like to replicate that support in my prefs pane class. The managedObjectModel: getter talks about how, by default, "the Core Data framework creates a merged model from all models in the applicati

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

2008-03-28 Thread Rick Mann
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 NSPr

Core Data & IB in prefs pane

2008-03-27 Thread Rick Mann
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 D