Hi,
I upgraded to 10.6 midway through a project and a bug came up where there
was none previously.

I am now seeing the error "Failed to call designated initialiser on
NSManagedObject class 'CHMySQLSettingsModel' " when I created an object on
the MOC or when I fetch an object for editing. Step by step debugging showed
that what seems to generate the error is when I display the screen that
allows the user to interact with the data and not when I interact with the
MOC in any way.

Second, I have a second model object that inherits from the same abstract
object as the previous model. In this case, I've noticed that
awakeFromInsert does not get called when I create a new object and I get the
same error message.

I create both model objects with:

CHPostgreSQLSettingsModel *model;

if (!connection) {

     NSEntityDescription *entity = [NSEntityDescription entityForName:
@"CHPostgreSQLSettingsModel"

      inManagedObjectContext:managedObjectContext];

     model = [[CHPostgreSQLSettingsModel alloc] initWithEntity:entity

       insertIntoManagedObjectContext:managedObjectContext];

     [window setTitle:@"Add neew PostgreSQL connection"];

 }



I believe the MOC has been initialised correctly because I have no problem
listing the contents of the XML file in an NSTableView.


-- 
Best regards,
Rui Pacheco
_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to