improved mac demo editor and also enabled the "console = self.delegate.v...

...iew.subviews[0]" trick for mac OS.