preliminary window capture code; I want to check if some code will compile on xcode