Platforms to show: All Mac Windows Linux Cross-Platform

NSViewMBS class

Super class: NSResponderMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
class Cocoa MBS MacBase Plugin 7.7 ✅ Yes ❌ No ❌ No ✅ Yes Desktop & iOS
The Cocoa class for a view.

To draw into a NSView, use either CustomNSViewMBS class with drawRect event or NSGraphicsMBS class.
Subclass of the NSResponderMBS class.

Window Order Constants

Constant Value Description
NSWindowAbove 1 Moves the window above the indicated window.
NSWindowBelow -1 Moves the window below the indicated window.
NSWindowOut 0 Moves the window off the screen.

Super class NSResponderMBS

Sub classes:

Some methods using this class:

Some properties using for this class:

Some events using this class:

Some examples using this class:

Blog Entries

Xojo Developer Magazine

Release notes

  • Version 23.4
    • Added clipsToBounds property to NSViewMBS class.
  • Version 22.2
    • Added Screenshot function for NSViewMBS class to render view into picture.
  • Version 21.4
    • Added userInteractionEnabled property to NSViewMBS class for iOS.
    • Improved NSViewMBS to work on iOS, internally with UIView.
  • Version 20.3
    • Added flipped parameter to RenderImage method in NSViewMBS class.
  • Version 18.4
  • Version 18.0
  • Version 17.5
    • Changed NSViewMBS constructors to raise exception if called on Windows.

The items on this page are in the following plugins: MBS AVFoundation Plugin, MBS Mac64bit Plugin, MBS MacBase Plugin, MBS MacCocoa Plugin, MBS MacControls Plugin, MBS MacExtras Plugin, MBS MacFrameworks Plugin, MBS PDFKit Plugin.

NSViewControllerMBS   -   NSViewTooltipMBS

💬 Ask a question or report a problem
The biggest plugin in space...