• 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: Getting a reference to the current application
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Getting a reference to the current application


  • Subject: Re: Getting a reference to the current application
  • From: Jonathan Rochkind <email@hidden>
  • Date: Thu, 29 Jan 2004 16:27:48 -0600

I could have sworn there was an application() method in WODirectAction too, but I guess there isn't, weird. At any rate, you can always get a reference to the WOApplication object, everywhere and anywhere, with:

WOApplication.application();

You may want to class-cast it to your custom WOApplication sub-class, typically called Application:
Application app = (Application) WOApplication.application();


--Jonathan

At 4:37 PM -0500 1/29/04, Mark W. Shead wrote:
I am attempting to call a method in Application.java from a direct action. I can't seem to find a way to get a reference to the application from within the direct action. Is this possible?

Thanks!

Mark
_______________________________________________
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: 
 >Getting a reference to the current application (From: "Mark W. Shead" <email@hidden>)

  • Prev by Date: Re: Getting a reference to the current application
  • Next by Date: RE: Getting a reference to the current application
  • Previous by thread: Re: Getting a reference to the current application
  • Next by thread: Re: Getting a reference to the current application
  • Index(es):
    • Date
    • Thread