Can I disable dragging NSWindow?

I create NSWindow and add a view to hide title bar(this.ContentView.Superview.AddSubview (view)) and I want to disable NSwindow dragging. How can I do?

Posts

  • DanSmith.1531DanSmith.1531 USMember ✭✭

    While, in general, I disagree with a Mac Window not being movable, Apple does allow you to do that (as long as you are targeting 10.6 or later)

    In your NSWindow class, set the "IsMovable" property to "false"

    (See Apple's Documentation if you have a custom Window class)

Sign In or Register to comment.