uchuugaka
uchuugaka

Reputation: 12782

How to make a custom window resizable from all sides

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

Upvotes: 0

Views: 501

Answers (1)

uchuugaka
uchuugaka

Reputation: 12782

Include NSResizableWindowMask in the styleMask argument of

initWithContentRect: contentRect
          styleMask:(NSBorderlessWindowMask | NSResizableWindowMask)
    backing: bufferingType
      defer: flag

Upvotes: 0

Related Questions