Re: NSWindowController for Prefs XIB Question (Core Data involved) - Solved

2010-05-21 Thread Steve Cronin
Folks; I have figured at least part of this out. My PrefsController had an instance variable that was of a class from the Core Data Model. Since the MOC was not available until after the initWithWindow, anything derived from NSManagedObject is not valid. Once I removed this instance var

Re: NSWindowController for Prefs XIB Question (Core Data involved)

2010-05-21 Thread Keary Suska
On May 21, 2010, at 12:09 AM, Quincey Morris wrote: > On May 20, 2010, at 20:08, Steve Cronin wrote: > >> if (!prefPanelController) { >> prefPanelController = [[PreferencesController alloc] >> initWithWindowNibName:@"testPref"]; >> [prefPanelController setManagedObjectContext:[self >>

Re: NSWindowController for Prefs XIB Question (Core Data involved)

2010-05-21 Thread Quincey Morris
On May 20, 2010, at 23:51, Steve Cronin wrote: > I have created a brand new xib file: ptest > XCode creates the xib with a FilesOwner, FirstResponder, Application, > and Window (set to releaseOnClose and visibleAtLaunch) ... > The new ptest.xib window will open once but never again if I cl

Re: NSWindowController for Prefs XIB Question (Core Data involved)

2010-05-20 Thread Steve Cronin
Folks; This one is driving me mad! I'm trying to bust up an overly complicated xib into 2 xibs - the main xib and a preference xib I've started completely over trying to implement a pref xib -- no CoreData just bare bones…. I have created a brand new subclass of NSWindowController: Pref2Contro

Re: NSWindowController for Prefs XIB Question (Core Data involved)

2010-05-20 Thread Quincey Morris
On May 20, 2010, at 20:08, Steve Cronin wrote: > if (!prefPanelController) { > prefPanelController = [[PreferencesController alloc] > initWithWindowNibName:@"testPref"]; > [prefPanelController setManagedObjectContext:[self > managedObjectContext]]; > } > [prefPanelController showWind

NSWindowController for Prefs XIB Question (Core Data involved)

2010-05-20 Thread Steve Cronin
Folks; I have a feeling that this is an embarrassing one so try and go easy on me… XC 3.2.2 I have a main nib that opens a window and that works fine. I used to have an NSPanel in this nib to handle preferences. I've decided it's a good idea to split the nib into two different nibs: the main ni