Re: referencing Application classes from non-component classes

2006-08-26 Thread Art Isbell
On Aug 26, 2006, at 12:24 AM, Paul Lynch wrote: I take in a lot of settings via both the Properties file, and settings files that I load (from plists or xml; the latter sucks harder). But so far I have avoided doing this from the model layer, as it goes against MVC principles. One techniq

Re: referencing Application classes from non-component classes

2006-08-26 Thread Paul Lynch
On 26 Aug 2006, at 06:48, Mike Schrag wrote: Any examples of the dirty way? I'll check the backlog of emails as well. Assuming your EO's are in the same project as your Application, there really isn't anything you need to do except import your Application class and call the method. There'

Re: Re: referencing Application classes from non-component classes

2006-08-26 Thread Joe Little
On 8/25/06, Mike Schrag <[EMAIL PROTECTED]> wrote: > Any examples of the dirty way? I'll check the backlog of emails as > well. Assuming your EO's are in the same project as your Application, there really isn't anything you need to do except import your Application class and call the method. The

Re: referencing Application classes from non-component classes

2006-08-25 Thread Mike Schrag
Any examples of the dirty way? I'll check the backlog of emails as well. Assuming your EO's are in the same project as your Application, there really isn't anything you need to do except import your Application class and call the method. There's nothing particularly special about Applicati

Re: Re: Re: referencing Application classes from non-component classes

2006-08-25 Thread Joe Little
I solved it indirectly by calling the System get properties method in the end class itself. I'd like to have the right solution in the end though. On 8/25/06, Joe Little <[EMAIL PROTECTED]> wrote: On 8/25/06, Mike Schrag <[EMAIL PROTECTED]> wrote: > This was actually discussed a couple weeks ago

Re: Re: referencing Application classes from non-component classes

2006-08-25 Thread Joe Little
On 8/25/06, Mike Schrag <[EMAIL PROTECTED]> wrote: This was actually discussed a couple weeks ago ... The quick summary is that you CAN access Application, but you should feel dirty doing it. The problem you will run into is that you may want to use your EO's outside of the context of a full blo

Re: referencing Application classes from non-component classes

2006-08-25 Thread Mike Schrag
This was actually discussed a couple weeks ago ... The quick summary is that you CAN access Application, but you should feel dirty doing it. The problem you will run into is that you may want to use your EO's outside of the context of a full blown running Application, and you're stuck with

Re: referencing Application classes from non-component classes

2006-08-25 Thread Joe Little
The subject should be referencing Application class from non-component classes. On 8/25/06, Joe Little <[EMAIL PROTECTED]> wrote: I'm trying to do something which I think is invalid. In my app I read in Properties file values in the Application class in an instance variable there. Throughout my