full screen

I'm creating a cocoa app for 10.7 and when I click on the fullscreen icon in the top right of the window bar it puts me in fullscreen mode but keeps the window's content the same size whearas I need it to scale to the screen. Any thoughts?

I assume that resizing the window at the bottom right has the same problem. If so, in IB, set the autoresizing mask to scale your content view (if using old-style nib layout), or add some more constraints (if using constraint-based layout).

If resizing the window at the bottom right works correctly, I'm more confused...