0

How can I make an NSWindow subclass resizable from all sides, even if using NSBorderlessWindowMask ?

uchuugaka
  • 12,679
  • 6
  • 37
  • 55
  • Asking and answering as it was found elsewhere, but in the comments of a question with an answer accepted. – uchuugaka Apr 03 '13 at 08:20

1 Answers1

0

Include NSResizableWindowMask in the styleMask argument of

initWithContentRect: contentRect
          styleMask:(NSBorderlessWindowMask | NSResizableWindowMask)
    backing: bufferingType
      defer: flag
Guntis Treulands
  • 4,764
  • 2
  • 50
  • 72
uchuugaka
  • 12,679
  • 6
  • 37
  • 55
  • But that will just allow you to resize the window using the standard resize control, not *from all sides* as your original question states, right? – Jay Apr 03 '13 at 10:14
  • I thought so too. On the contrary since lion it gives the resize function from edges. – uchuugaka Apr 03 '13 at 11:06