|
|
is there a pattern to Injecting into Views + MXML Configuration (1 viewing) (1) Guests
Favoured: 0
|
|
|
TOPIC: is there a pattern to Injecting into Views + MXML Configuration
|
|
|
|
is there a pattern to Injecting into Views + MXML Configuration
|
|
|
Is there a way to inject into views directly? Yes, you could write a PresentationMap - in fact, I'll be doing this soon enough anyhow. It wouldn't make it into the mvcs package, but it would be a fun addon. Is the mediator pattern so awesome that you think everybody should use it? Haha! No, it's just the recommended approach for Mvcs _base_d applications. Also, I'm assuming there is no way to write a context and specify injections in M_xml_. Interesting. We should definitely look into that. If I wanted to write something like that, what would be the best way to distribute it? Should I put the code in another package in my fork of the project, or in a different project entirely? That would be awesome; you *could* just throw it into another package in your fork.. But it might be better to put it into another repo, named appropriately, so that the robotlegs user could fork it.
|
|
|
|
|
|
|
The administrator has disabled public write access. |
|
|
|
is there a pattern to Injecting into Views + MXML Configuration
|
|
|
toward binding your view to the _frame_work in any way. Because of that, you don't get any direct way to inject into views, but it's possible: 1. inject the injector itself into your mediator by adding it as a dependency: [Inject] public var injector:IInjector; 2. manually inject into your view: injector.injectInto(myView); If you don't want any mediators, you could automate that by binding one generic mediator to all views (and specifying your views' _base_ class as the injectAsClass parameter of mapView). That way, you'd only have to do the mapping for all views. As for M_xml_ support in SwiftSuspenders: I'm honestly not sure what that'd even mean. I'll investigate how _meta_data _embed_ded into M_xml_ is translated during cross-compilation to AS3. Maybe there's nothing to be done there and it just works the same, maybe we'll have to extend SwiftSuspenders a little bit, maybe it's a whole different thing altogether. On Wed, Nov 4, 2009 at 17:56, Sean Clark Hess <
This e-mail address is being protected from spam bots, you need JavaScript enabled to view it
wrote: Wait, I thought that SwiftSuspenders was the default injector. I'm looking at it, and I don't see any M_xml_ stuff. On Wed, Nov 4, 2009 at 9:48 AM, Joel Hooks <
This e-mail address is being protected from spam bots, you need JavaScript enabled to view it
wrote: If you want to specify injections in M_xml_, you probably want to look at SwiftSuspenders. On Nov 4, 2009, at 10:46 AM, Sean Clark Hess wrote: Is there a way to inject into views directly? If I wanted to use the presentation model pattern, for example, this would be required. Is the mediator pattern so awesome that you think everybody should use it? Also, I'm assuming there is no way to write a context and specify injections in M_xml_. If I wanted to write something like that, what would be the best way to distribute it? Should I put the code in another package in my fork of the project, or in a different project entirely? Do you have a way to manage extensions and add-ons? Thanks
|
|
|
|
|
|
|
The administrator has disabled public write access. |
|
|
|
is there a pattern to Injecting into Views + MXML Configuration
|
|
|
Injecting to views - no, I want the _frame_work to listen to the added_to_stage event and inject automatically. It doesn't require a dependency on the _frame_work. Re: M_xml_ - it would look something like this: <!
|
|
|
|
|
|
|
The administrator has disabled public write access. |
|
|
|
is there a pattern to Injecting into Views + MXML Configuration
|
|
|
technically should work the exact same. On Wed, Nov 4, 2009 at 12:05 PM, Till Schneidereit <
This e-mail address is being protected from spam bots, you need JavaScript enabled to view it
wrote: At least the mvcs implementation of Robotlegs really isn't geared toward binding your view to the _frame_work in any way. Because of that, you don't get any direct way to inject into views, but it's possible: 1. inject the injector itself into your mediator by adding it as a dependency: [Inject] public var injector:IInjector; 2. manually inject into your view: injector.injectInto(myView); If you don't want any mediators, you could automate that by binding one generic mediator to all views (and specifying your views' _base_ class as the injectAsClass parameter of mapView). That way, you'd only have to do the mapping for all views. As for M_xml_ support in SwiftSuspenders: I'm honestly not sure what that'd even mean. I'll investigate how _meta_data _embed_ded into M_xml_ is translated during cross-compilation to AS3. Maybe there's nothing to be done there and it just works the same, maybe we'll have to extend SwiftSuspenders a little bit, maybe it's a whole different thing altogether. On Wed, Nov 4, 2009 at 17:56, Sean Clark Hess <
This e-mail address is being protected from spam bots, you need JavaScript enabled to view it
wrote: Wait, I thought that SwiftSuspenders was the default injector. I'm looking at it, and I don't see any M_xml_ stuff. On Wed, Nov 4, 2009 at 9:48 AM, Joel Hooks <
This e-mail address is being protected from spam bots, you need JavaScript enabled to view it
wrote: If you want to specify injections in M_xml_, you probably want to look at SwiftSuspenders. On Nov 4, 2009, at 10:46 AM, Sean Clark Hess wrote: Is there a way to inject into views directly? If I wanted to use the presentation model pattern, for example, this would be required. Is the mediator pattern so awesome that you think everybody should use it? Also, I'm assuming there is no way to write a context and specify injections in M_xml_. If I wanted to write something like that, what would be the best way to distribute it? Should I put the code in another package in my fork of the project, or in a different project entirely? Do you have a way to manage extensions and add-ons? Thanks
|
|
|
|
|
|
|
The administrator has disabled public write access. |
|
|
|
is there a pattern to Injecting into Views + MXML Configuration
|
|
|
make it look pretty On Wed, Nov 4, 2009 at 10:07 AM, Jesse Warden <
This e-mail address is being protected from spam bots, you need JavaScript enabled to view it
wrote: M_xml_ is compiled to Action_script_; M_xml_ == AS3 class at runtime. So.... technically should work the exact same. On Wed, Nov 4, 2009 at 12:05 PM, Till Schneidereit <
This e-mail address is being protected from spam bots, you need JavaScript enabled to view it
wrote: At least the mvcs implementation of Robotlegs really isn't geared toward binding your view to the _frame_work in any way. Because of that, you don't get any direct way to inject into views, but it's possible: 1. inject the injector itself into your mediator by adding it as a dependency: [Inject] public var injector:IInjector; 2. manually inject into your view: injector.injectInto(myView); If you don't want any mediators, you could automate that by binding one generic mediator to all views (and specifying your views' _base_ class as the injectAsClass parameter of mapView). That way, you'd only have to do the mapping for all views. As for M_xml_ support in SwiftSuspenders: I'm honestly not sure what that'd even mean. I'll investigate how _meta_data _embed_ded into M_xml_ is translated during cross-compilation to AS3. Maybe there's nothing to be done there and it just works the same, maybe we'll have to extend SwiftSuspenders a little bit, maybe it's a whole different thing altogether. On Wed, Nov 4, 2009 at 17:56, Sean Clark Hess <
This e-mail address is being protected from spam bots, you need JavaScript enabled to view it
wrote: Wait, I thought that SwiftSuspenders was the default injector. I'm looking at it, and I don't see any M_xml_ stuff. On Wed, Nov 4, 2009 at 9:48 AM, Joel Hooks <
This e-mail address is being protected from spam bots, you need JavaScript enabled to view it
wrote: If you want to specify injections in M_xml_, you probably want to look at SwiftSuspenders. On Nov 4, 2009, at 10:46 AM, Sean Clark Hess wrote: Is there a way to inject into views directly? If I wanted to use the presentation model pattern, for example, this would be required. Is the mediator pattern so awesome that you think everybody should use it? Also, I'm assuming there is no way to write a context and specify injections in M_xml_. If I wanted to write something like that, what would be the best way to distribute it? Should I put the code in another package in my fork of the project, or in a different project entirely? Do you have a way to manage extensions and add-ons? Thanks
|
|
|
|
|
|
|
The administrator has disabled public write access. |
|
|
|
is there a pattern to Injecting into Views + MXML Configuration
|
|
|
added_to_stage event and inject automatically. It doesn't require a dependency on the _frame_work. Re: M_xml_ - it would look something like this: <!
|
|
|
|
|
|
|
The administrator has disabled public write access. |
|
|
|
Who's Online
We have 11 guests online
Young mothers and teleworking
How to give a perfect preapred coffee?

Do you know why a cup of espresso is cylindrical in shape, or how to make Irish coffee?
Keep in mind that coffee should not only be well prepared, but also given a beautiful setting. Altom knows that the only way for any coffee when nasycimy autos.famous-car.co.uk lebensmittel polen moto.money4car.co.uk all our senses - not just smell and taste ...
Originates from Ethiopia, and in Europe appeared around the sixteenth century. Today it is hard to imagine the beginning of the day without freshly brewed, hot coffee. Dynamism, stimulates, gives a sense of power. And above all, well prepared and well-stated - it tastes wonderful. Coffee, creator of the eternal good mood is one of the most pitych beverages in the world, and how many cultures, Panerai Replica Watch posizionamento Google Répliques des Montres so many ways of preparing it.
|
|