• 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
Re: Grrr! awakeFromInsertion...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


References: 
 >Grrr! awakeFromInsertion... (From: Kent Harris <email@hidden>)

  • Prev by Date: Grrr! awakeFromInsertion...
  • Next by Date: Re: Grrr! awakeFromInsertion...
  • Previous by thread: Grrr! awakeFromInsertion...
  • Next by thread: Re: Grrr! awakeFromInsertion...
  • Index(es):
    • Date
    • Thread