I'll leave this one to Greg since he wrote WTKXSerializer.  FYI, I
think he's gone all weekend.

On Fri, Apr 10, 2009 at 3:51 PM, Noel Grandin <[email protected]> wrote:
> Hi
>
> I just got bitten by an unexpected problem. I had 2 files like this:
> first file:
>  <Window>
>    <wtkx:include "other.wtkx"/>
>  </Window>
>
> other.wtkx:
>  <Border>
>    <TreeView wtkx:id="myid" />
>  </Border>
>
> Now, when I load this, the identifier "myid" is not visible anywhere.
> This is because I failed to specify a namespace for the included file.
>
> This took me quite a while to work out, because my mental model of
> include says that the default is that the included file is fully
> visible, which should mean that the identifiers are visible from
> getObjectByName().
>
> I suggest that either
> (a) if I include a file without a namespace, and I specify
> identifiers, an error should be thrown
> or
> (b) if I include a file without a namespace, identifiers should be
> visible from getObjectByName()
>
> Regards,  Noel Grandin
>

Reply via email to