• 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: willDelete question?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: willDelete question?


  • Subject: Re: willDelete question?
  • From: James Cicenia <email@hidden>
  • Date: Thu, 22 Dec 2011 11:31:08 -0600

Hmmm, don't know,  this is a D2WModernLook. I am only at a list view when I click delete.


James 



On Dec 22, 2011, at 10:22 AM, Ramsey Gurley wrote:

Twice. I'll take a stab at it... Are you using a nested editing context? Other than that, I don't know.  I haven't used will delete for much, so I'm not well versed in when it gets called.

Ramsey

On Dec 22, 2011, at 6:15 AM, James Cicenia wrote:

Yes.. I put super in there.....

but one question, it seems that my willDelete is called twice? 
Otherwise this works perfectly!!

Thanks
James


On Dec 21, 2011, at 1:15 PM, Amedeo Mantica wrote:

are u overriding ?

call super(), at the end, otherwise you will get error, after deletion this.primaryKey is gone

Amedeo


On 21/dic/2011, at 18:48, James Cicenia wrote:

Hello -

I am thinking about doing this in my EOObject:

public void willDelete(){
Deletes d = (Deletes) EOUtilities.createAndInsertInstance(this.editingContext(), "Deletes");
d.setNameOfEntity(this.entityName());
d.setExt_id(this.primaryKey());

}

1) Is this safe?
2)  do I need an explicit save here? Or will this be saved via the objects current editing context?

Thanks

James 


smime.p7s
Description: S/MIME cryptographic signature

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >willDelete question? (From: James Cicenia <email@hidden>)
 >Re: willDelete question? (From: James Cicenia <email@hidden>)
 >Re: willDelete question? (From: Ramsey Gurley <email@hidden>)

  • Prev by Date: Re: Best type of machine
  • Next by Date: Re: Best type of machine
  • Previous by thread: Re: willDelete question?
  • Next by thread: Maven: archetypes, infrastructure, and documentation
  • Index(es):
    • Date
    • Thread