This content is not yet available over encrypted connections.

Thursday, August 23, 2012

Fun House Of Mirrors

Working feverishly on a version of Buckshot that uses the new #dartlang mirrors API.

Where before you had to pre-register controls to the framework, this version finds and instantiates controls automatically.  All you have to do is import the library with the control in your app, and Buckshot does the rest.  This has the added benefit of preventing registration sequence problems where a control might want to reference another control that hasn't been registered yet.

This branch of the project only works in Dartium at the moment because mirrors isn't yet supported in dart2js, but if you'd like to check out some aspects of how mirrors work, then give it a spin at the link provided below.  All of the included demos work with the mirror-based version.

I have a helper class that provides some utility functions via mirrors here: miriam.dart

Buckshot 'Latest' Branch On Github

No comments:

Post a Comment