Re: Grrr! awakeFromInsertion...
Re: Grrr! awakeFromInsertion...
- Subject: Re: Grrr! awakeFromInsertion...
- From: Chuck Hill <email@hidden>
- Date: Tue, 9 Mar 2004 09:03:22 -0800
It is a "quirk" of D2W. For some reason it only inserts the object
immediately before saving it instead of the proper/safer pattern of
inserting it immediately after creation. The use of EOCustomObject /
EOGenericRecord is irrelevant.
Chuck
On Mar 9, 2004, at 7:17 AM, 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.
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.