NSPopOver & NSViewController - Drag to resize
问题 I am making a MenuBar app for which I am using NSPopOver . The problem is that NSPopover uses NSViewController as a contentViewController , whose size gets fixed. My requirement is to make the size of NSViewController flexible i.e just like NSWindowController (set the minimum size and maximum depends upon the total screen size). In simple words how to change the size of NSViewController(NSPopOver) when user drags it. I am new to OS X programming. 回答1: I finally got it working by using Mouse