• 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
I upgraded to 10.6 and all I got was this lousy bug
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

I upgraded to 10.6 and all I got was this lousy bug


  • Subject: I upgraded to 10.6 and all I got was this lousy bug
  • From: Rui Pacheco <email@hidden>
  • Date: Thu, 1 Oct 2009 21:03:32 +0100

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 (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

  • Prev by Date: Re: Provisioning Question
  • Next by Date: Re: Weird NSToolbar glitch
  • Previous by thread: Re: Weird NSToolbar glitch
  • Next by thread: NSImageCell Disabled Look
  • Index(es):
    • Date
    • Thread