When presenting a popover with a dim view, resize the dim view if resizing the window
Only allow integral rect sizes
Xcode 4.6 warning fixes