On Leopard at least, when making a Widget subclass, you can use flow,
and it works great, but if you use the 'stack' method it will raise no
errors, create no stacks (as far as I can tell, anywhere, but
certainly not anywhere within the widget), and return 'nil' silently.
This sure is a frustrating bug. Here's how to test it:
class Thing < Widget
def initialize
@stack = stack
info @stack.inspect
info self.children.inspect
end
end
Use a 'thing' widget and you'll see info statments come out stating
that @stack is nil, and self.children is []
Very frustrating indeededly.