I understand.
In my applications, i've got a few extended qx.core.Object, by example:
fayeManager, jobsManager, .. I need only one instance of them in my app,
but most of gui part need to play with them.
Let's stay with qx.core.init.getApplication, so qooxdoo compiler will not
shout ;)
Thanks for the brainstorm loren
On Fri, May 3, 2013 at 9:53 PM, Loren Schlomer <[email protected]>wrote:
> I think that approach is less risky than making the Application class a
> singleton, but then you also step outside the bounds of the qooxdoo API,
> and the generator will complain.
>
>
> To argue for good software design though, you shouldn't --need-- a pointer
> back to the application entry point. I understand, and agree with, the
> argument, but I'm certainly not a design elitist and will not berate you
> for your design decisions, (provided I never have to maintain them. heh)
>
>
> :)
>
>
>
>
>
> On Fri, May 3, 2013 at 12:39 PM, franck34 <[email protected]> wrote:
>
>> hehe i like "extremely taboo" :)
>>
>> what about ....
>>
>> window.myApp = qx.core.init.getApplication();
>> and/or
>> window.mySubApp = qx.core.init.getApplication().getMySubApp() ..
>>
>> (please don't kill me, i plan a second weeding in 3 months)
>>
>>
>>
>>
>> On Fri, May 3, 2013 at 9:19 PM, Loren Schlomer
>> <[email protected]>wrote:
>>
>>> One approach I've used successfully, (but is probably extremely taboo,)
>>> is to make your Application class a singleton. Then it's accessible from
>>> every where with just an Application.getInstance()
>>>
>>>
>>>
>>>
>>> On Fri, May 3, 2013 at 12:13 PM, franck34 <[email protected]> wrote:
>>>
>>>> Hi,
>>>>
>>>> Probably a stupid question, but ...
>>>>
>>>> Is there an aliase for qx.core.Init.getApplication() ?
>>>>
>>>> like myApplication.get() or something ...
>>>>
>>>> Thanks
>>>> Franck
>>>>
>>>>
>>>>
>>>> ------------------------------------------------------------------------------
>>>> Get 100% visibility into Java/.NET code with AppDynamics Lite
>>>> It's a free troubleshooting tool designed for production
>>>> Get down to code-level detail for bottlenecks, with <2% overhead.
>>>> Download for free and get started troubleshooting in minutes.
>>>> http://p.sf.net/sfu/appdyn_d2d_ap2
>>>> _______________________________________________
>>>> qooxdoo-devel mailing list
>>>> [email protected]
>>>> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>>>>
>>>>
>>>
>>
>
------------------------------------------------------------------------------
Get 100% visibility into Java/.NET code with AppDynamics Lite
It's a free troubleshooting tool designed for production
Get down to code-level detail for bottlenecks, with <2% overhead.
Download for free and get started troubleshooting in minutes.
http://p.sf.net/sfu/appdyn_d2d_ap2
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel