Re: Grrr! awakeFromInsertion...
Re: Grrr! awakeFromInsertion...
- Subject: Re: Grrr! awakeFromInsertion...
- From: Jonathan Rochkind <email@hidden>
- Date: Tue, 9 Mar 2004 11:28:46 -0600
At 7:17 AM -0800 3/9/04, Kent Harris wrote:
After spending multiple hours of lucubration in my mountain grange
this weekend (no internet access but laptop faithfully ticking
along) whilst trying to figure out why awakeFromInsertion() was not
getting called to initialize my form (direct-to-java-client) I
returned to internet-land only to read somewhere that you must
extend EOCustomObject instead of EOGenericRecord.
No. I think you are mistaken. I have plenty of custom EO classes that
extend EOGenericRecord, and they're awakeFromInsertion method is
still called.
awakeFromInsertion should be called at the appropriate time for any
EOEnterpriseObject, regardless of superclass.
I'm not sure why you are having a problem, it is mysterious.
awakeFromInsertion should be called whenever you insert an EO into an
EC, with ec.insertObject( eo ); Dont' know why it's not working
right for you, but it's not becuase you are subclassing
EOGenericRecord. I'd try to be positive that the EO is really
getting inserted into an EC when you think it is.
--Jonathan
Is this correct? Some of Apple's own examples extend
EOGenericRecord! Will I have to add all that willRead() and
willChange() crap to my EOModel methods?
awakFromInsertion() was getting called but only AFTER I clicked
"save" on an open form. Seems it should get called when "new" is
clicked.
Thanks
- Kent
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.