• 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: Kent Harris <email@hidden>
  • Date: Wed, 10 Mar 2004 05:50:14 -0800

Thanks Jonathan,

The direct-to-java-client user interface is dynamically created. I click on the "new" button and a new "form" window appears. awakeFromInsertion should have already been called by the time the new window appears. I don't have an opportunity to insert anything into the ec because my code doesn't have any opportunity to gain control at that point (thats what awakFromInsertion is supposed to do) and clearly an already ec exists for the new window (because it has open/close/new/revert/etc buttons.) I'll try some more experiments.

- Kent

On Mar 9, 2004, at 9:28 AM, Jonathan Rochkind wrote:

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.


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

  • Prev by Date: Random Int between x and y
  • Next by Date: RE: Grrr! awakeFromInsertion...
  • Previous by thread: Re: Grrr! awakeFromInsertion...
  • Next by thread: RE: Grrr! awakeFromInsertion...
  • Index(es):
    • Date
    • Thread