• 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
Event Lisner I Presume - Triggering Code
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Event Lisner I Presume - Triggering Code


  • Subject: Event Lisner I Presume - Triggering Code
  • From: "Jonathan Fleming" <email@hidden>
  • Date: Tue, 17 Feb 2004 17:18:08 +0000

I want to trigger a piece of code to run at a determined time, say from code such as in this NSLog.out.appendln:

NSLog.out.appendln(" registration creationDate is: " + creationDate + "\r" +
" account must be setup by: " + timeLapse + "\r" +
" Date/Time now is: " + now + ".\r" +
" 1st email reminder date: " + timeLapseR1 +" " + now.equals(timeLapseR1) + ".\r" +
" 2nd email reminder date: " + timeLapseR2 +" " + now.equals(timeLapseR2)+"\r");


When timeLapseR1 equals it's stated time the email sender will do it's thing and all will be well...
again when the time reaches that for timeLapseR2 the same thing happens another email is sent and we're happy.


How do I do that from application.java... trigger code to run at a determined time.
I can use the after() method but that then means the code is triggered everytime an app instance is restarted... I just don't know what to use to do what is needed.


Offers of help greatly respected
Jonathan :^)

_________________________________________________________________
Express yourself with cool emoticons - download MSN Messenger today! http://www.msn.co.uk/messenger
_______________________________________________
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.

  • Follow-Ups:
    • Re: Event Lisner I Presume - Triggering Code
      • From: Jonathan Rochkind <email@hidden>
  • Prev by Date: Re: locking editing context when removing item
  • Next by Date: Re: Event Lisner I Presume - Triggering Code
  • Previous by thread: Re: ValidateValueForKey
  • Next by thread: Re: Event Lisner I Presume - Triggering Code
  • Index(es):
    • Date
    • Thread