• 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: Jonathan Rochkind <email@hidden>
  • Date: Wed, 10 Mar 2004 10:53:28 -0600

I don't have any experience with D2JC. I don't even use D2W myself. Chuck Hill previously indicated that D2W behaved strangely with this stuff, that it sometimes didn't actually insert the object when you expected it to. If that's so, it's likely D2JC is the same, and I don't know what can be done about it, not having experience with D2JC. But Pierre is saying he does have experience, and it should normally insert the object at a reasonable point?

--Jonathan

At 3:07 PM +0100 3/10/04, <email@hidden> wrote:
Hi!

awakeFromInsertion() should definetly be called at that point.

Are you sure your class is available to the client side. The Java client will move on and silently default to EOGenericRecord if it is not. Then your code will, of course, never get called.

Verify the client class name in your EOModel. Then make sure the class made makes it into the JAR used on the client side. For JavaWebStart, that would be the JAR in WebserverResources.

Pierre.

-----Original Message-----
From: Kent Harris [mailto:email@hidden]
Sent: Wednesday, March 10, 2004 2:50 PM
To: Jonathan Rochkind
Cc: email@hidden
Subject: Re: Grrr! awakeFromInsertion...


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.




**********************************************************************
This email and any files transmitted with it are intended solely for
the use of the individual or entity to whom they are addressed.
If you have received this email in error please notify the sender
of this message. (email@hidden)
This email message has been checked for the presence of computer
viruses; however this protection does not ensure this message is
virus free.
Banque centrale du Luxembourg; Tel ++352-4774-1; http://www.bcl.lu
**********************************************************************
_______________________________________________
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: 
 >RE: Grrr! awakeFromInsertion... (From: <email@hidden>)

  • Prev by Date: RE: Scheduling with WOTimer
  • Next by Date: Re: Random Int between x and y
  • Previous by thread: RE: Grrr! awakeFromInsertion...
  • Next by thread: Limiting max number of sessions
  • Index(es):
    • Date
    • Thread