On Mon, Sep 29, 2008 at 02:57:22PM +0200, Gunther Diemant wrote: > i get: > #1 -> (Shoes::Foo) > After click on button: > #2 -> (Shoes::App "window") > #3 -> (Shoes::App "main") > > My proplem is now, that I would expect that the owner of a window has the > same class as the index page self.
The index page itself (Shoes::Foo) is not the same as the whole window (Shoes::App). It is much like HTML's `document` and `window` objects. Try: owner.slot.contents.inspect for #3. As others recommended, the "Rules of Shoes" page tries to explain how `self` acts inside blocks. But you've made me realize one omission. In `window` blocks, self is changed just like it is in `Shoes.app`. _why
