Setting window color

In ASS I used:

	tell mainWindow
		set background color to windowColor
	end

How to transfer to ASobjC?

If you look up NSWindow you will see a backgroundColor property. So:

        mainWindow's setBackgroundColor:(current application's NSColor's windowBackgroundColor())

Shame on me.
Thanks.