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 |
To draw into a NSView, use either CustomNSViewMBS class with drawRect event or NSGraphicsMBS class.
Subclass of the NSResponderMBS class.
- 43 properties
- property acceptsTouchEvents as boolean
- property allowsVibrancy as Boolean
- property alphaValue as Double
- property autoresizesSubviews as boolean
- property autoresizingMask as Integer
- property bounds as NSRectMBS
- property boundsRotation as Double
- property canBecomeKeyView as boolean
- property canDraw as boolean
- property canDrawConcurrently as boolean
- property className as string
- property classPath as string
- property clipsToBounds as Boolean
- property focusRingType as Integer
- property frame as NSRectMBS
- property frameCenterRotation as Double
- property frameHeight as Double
- property frameLeft as Double
- property frameRotation as Double
- property frameTop as Double
- property frameWidth as Double
- property identifier as string
- property isFlipped as Boolean
- property isHidden as Boolean
- property isHiddenOrHasHiddenAncestor as Boolean
- property isOpaque as Boolean
- property isRotatedFromBase as Boolean
- property isRotatedOrScaledFromBase as Boolean
- property layer as Variant
- property layerUsesCoreImageFilters as Boolean
- property needsDisplay as Boolean
- property nextKeyView as NSViewMBS
- property opaqueAncestor as NSViewMBS
- property RetainCount as Integer
- property superview as NSViewMBS
- property toolTip as string
- property userInteractionEnabled as Boolean
- property visibleRect as NSRectMBS
- property wantsDefaultClipping as boolean
- property wantsLayer as Boolean
- property wantsRestingTouches as boolean
- property window as NSWindowMBS
- property compositingFilter as variant
- 57 methods
- method addSubview(subview as NSViewMBS)
- method addSubview(subview as NSViewMBS, positioned as Integer, relativeToView as NSViewMBS)
- method addToolTipRect(rect as NSRectMBS, tooltip as NSViewTooltipMBS)
- method ancestorSharedWithView(view as NSViewMBS) as NSViewMBS
- method animator as NSViewMBS
- method backgroundFilters as variant()
- method beginDraggingSessionWithItems(items() as Variant, e as NSEventMBS, source as NSViewMBS) as Variant
- method Constructor
- method Constructor(Handle as Integer)
- method Constructor(left as Double, top as Double, width as Double, height as Double)
- method contentFilters as variant()
- method convertPointFromView(point as NSPointMBS, View as NSViewMBS) as NSPointMBS
- method convertPointToView(point as NSPointMBS, View as NSViewMBS) as NSPointMBS
- method convertRectFromView(rect as NSRectMBS, View as NSViewMBS) as NSRectMBS
- method convertRectToView(rect as NSRectMBS, View as NSViewMBS) as NSRectMBS
- method convertSizeFromView(Size as NSSizeMBS, View as NSViewMBS) as NSSizeMBS
- method convertSizeToView(Size as NSSizeMBS, View as NSViewMBS) as NSSizeMBS
- method dataWithEPSInsideRect(left as Double, top as Double, width as Double, height as Double) as Memoryblock
- method dataWithPDFInsideRect(left as Double, top as Double, width as Double, height as Double) as Memoryblock
- method dataWithPDFInsideRect(r as NSRectMBS) as Memoryblock
- method dragImage(image as NSImageMBS, viewLocation as NSPointMBS, offset as NSSizeMBS, NSEvent as NSEventMBS, pboard as NSPasteboardMBS, source as NSViewMBS, slideFlag as boolean)
- method drawFocusRingMask
- method enclosingMenuItem as Variant
- method enclosingScrollView as Variant
- method focusRingMaskBounds as NSRectMBS
- method isDescendantOf(view as NSViewMBS) as boolean
- method makeBackingLayer as Variant
- method nextValidKeyView as NSViewMBS
- method noteFocusRingMaskChanged
- method pageFooter as NSAttributedStringMBS
- method pageHeader as NSAttributedStringMBS
- method previousKeyView as NSViewMBS
- method previousValidKeyView as NSViewMBS
- method print
- method registeredDraggedTypes as string()
- method registerForDraggedTypes(Types() as string)
- method removeAllToolTips
- method removeFromSuperview
- method removeFromSuperviewWithoutNeedingDisplay
- method RenderImage(subviews as boolean = false, flipped as boolean = false) as variant
- method replaceSubview(oldView as NSViewMBS, newView as NSViewMBS)
- method rotateByAngle(angle as Double)
- method scaleUnitSquareToSize(size as NSSizeMBS)
- method Screenshot as Picture
- method setBackgroundFilters(Filters() as variant)
- method setBoundsOrigin(origin as NSPointMBS)
- method setBoundsOrigin(x as Double, y as Double)
- method setBoundsSize(size as NSSizeMBS)
- method setBoundsSize(width as Double, height as Double)
- method setContentFilters(Filters() as variant)
- method setFocus
- method setFrameOrigin(origin as NSPointMBS)
- method setFrameOrigin(x as Double, y as Double)
- method setFrameSize(size as NSSizeMBS)
- method setFrameSize(width as Double, height as Double)
- method subviews(recursive as boolean = false) as NSViewMBS()
- method unregisterDraggedTypes
- 5 shared methods
- shared method NSViewBoundsDidChangeNotification as string
- shared method NSViewDidUpdateTrackingAreasNotification as string
- shared method NSViewFocusDidChangeNotification as string
- shared method NSViewFrameDidChangeNotification as string
- shared method NSViewGlobalFrameDidChangeNotification as string
- 21 constants
- const NSBezelBorder = 2
- const NSFocusRingTypeDefault = 0
- const NSFocusRingTypeExterior = 2
- const NSFocusRingTypeNone = 1
- const NSGrooveBorder = 3
- const NSLineBorder = 1
- const NSNoBorder = 0
- const NSViewHeightSizable = 16
- const NSViewLayerContentsRedrawBeforeViewResize = 3
- const NSViewLayerContentsRedrawDuringViewResize = 2
- const NSViewLayerContentsRedrawNever = 0
- const NSViewLayerContentsRedrawOnSetNeedsDisplay = 1
- const NSViewMaxXMargin = 4
- const NSViewMaxYMargin = 32
- const NSViewMinXMargin = 1
- const NSViewMinYMargin = 8
- const NSViewNotSizable = 0
- const NSViewWidthSizable = 2
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
- 3 properties
- property Handle as Integer
- property menu as NSMenuMBS
- property nextResponder as NSResponderMBS
- 123 methods
- method beginGestureWithEvent(e as NSEventMBS)
- method cancelOperation
- method capitalizeWord
- method centerSelectionInVisibleArea
- method changeCaseOfLetter
- method complete
- method Constructor Private
- method cursorUpdate(e as NSEventMBS)
- method deleteBackward
- method deleteBackwardByDecomposingPreviousCharacter
- method deleteForward
- method deleteToBeginningOfLine
- method deleteToBeginningOfParagraph
- method deleteToEndOfLine
- method deleteToEndOfParagraph
- method deleteToMark
- method deleteWordBackward
- method deleteWordForward
- method endGestureWithEvent(e as NSEventMBS)
- method flagsChanged(e as NSEventMBS)
- method flushBufferedKeyEvents
- method helpRequested(e as NSEventMBS)
- method indent
- method insertBacktab
- method insertContainerBreak
- method insertDoubleQuoteIgnoringSubstitution
- method insertLineBreak
- method insertNewline
- method insertNewlineIgnoringFieldEditor
- method insertParagraphSeparator
- method insertSingleQuoteIgnoringSubstitution
- method insertTab
- method insertTabIgnoringFieldEditor
- method keyDown(e as NSEventMBS)
- method keyUp(e as NSEventMBS)
- method lowercaseWord
- method magnifyWithEvent(e as NSEventMBS)
- method makeBaseWritingDirectionLeftToRight
- method makeBaseWritingDirectionNatural
- method makeBaseWritingDirectionRightToLeft
- method makeTextWritingDirectionLeftToRight
- method makeTextWritingDirectionNatural
- method makeTextWritingDirectionRightToLeft
- method mouseDown(e as NSEventMBS)
- method mouseDragged(e as NSEventMBS)
- method mouseEntered(e as NSEventMBS)
- method mouseExited(e as NSEventMBS)
- method mouseMoved(e as NSEventMBS)
- method mouseUp(e as NSEventMBS)
- method moveBackward
- method moveBackwardAndModifySelection
- method moveDown
- method moveDownAndModifySelection
- method moveForward
- method moveForwardAndModifySelection
- method moveLeft
- method moveLeftAndModifySelection
- method moveParagraphBackwardAndModifySelection
- method moveParagraphForwardAndModifySelection
- method moveRight
- method moveRightAndModifySelection
- method moveToBeginningOfDocument
- method moveToBeginningOfDocumentAndModifySelection
- method moveToBeginningOfLine
- method moveToBeginningOfLineAndModifySelection
- method moveToBeginningOfParagraph
- method moveToBeginningOfParagraphAndModifySelection
- method moveToEndOfDocument
- method moveToEndOfDocumentAndModifySelection
- method moveToEndOfLine
- method moveToEndOfLineAndModifySelection
- method moveToEndOfParagraph
- method moveToEndOfParagraphAndModifySelection
- method moveToLeftEndOfLine
- method moveToLeftEndOfLineAndModifySelection
- method moveToRightEndOfLine
- method moveToRightEndOfLineAndModifySelection
- method moveUp
- method moveUpAndModifySelection
- method moveWordBackward
- method moveWordBackwardAndModifySelection
- method moveWordForward
- method moveWordForwardAndModifySelection
- method moveWordLeft
- method moveWordLeftAndModifySelection
- method moveWordRight
- method moveWordRightAndModifySelection
- method otherMouseDown(e as NSEventMBS)
- method otherMouseDragged(e as NSEventMBS)
- method otherMouseUp(e as NSEventMBS)
- method pageDown
- method pageDownAndModifySelection
- method pageUp
- method pageUpAndModifySelection
- method performMnemonic(theString as string) as boolean
- method presentError(e as NSErrorMBS) as boolean
- method rightMouseDown(e as NSEventMBS)
- method rightMouseDragged(e as NSEventMBS)
- method rightMouseUp(e as NSEventMBS)
- method rotateWithEvent(e as NSEventMBS)
- method scrollLineDown
- method scrollLineUp
- method scrollPageDown
- method scrollPageUp
- method scrollToBeginningOfDocument
- method scrollToEndOfDocument
- method scrollWheel(e as NSEventMBS)
- method selectAll
- method selectLine
- method selectParagraph
- method selectToMark
- method selectWord
- method setMark
- method showContextHelp
- method swapWithMark
- method swipeWithEvent(e as NSEventMBS)
- method tabletPoint(e as NSEventMBS)
- method tabletProximity(e as NSEventMBS)
- method transpose
- method transposeWords
- method undoManager as NSUndoManagerMBS
- method uppercaseWord
- method yank
Sub classes:
- class ABPeoplePickerViewMBS
- class ABPersonViewMBS
- class CustomNSViewMBS
- class IKCameraDeviceViewMBS
- class IKDeviceBrowserViewMBS
- class IKImageBrowserViewMBS
- class IKImageViewMBS
- class IKScannerDeviceViewMBS
- class MKAnnotationViewMBS
- class MKMapViewMBS
- class NSBoxMBS
- class NSClipViewMBS
- class NSCollectionViewMBS
- class NSCollectionViewSectionHeaderViewMBS
- class NSControlMBS
- class NSProgressIndicatorMBS
- class NSScrollViewMBS
- class NSSplitViewMBS
- class NSTableHeaderViewMBS
- class NSTableRowViewMBS
- class NSTableViewMBS
- class NSTabViewMBS
- class NSTextMBS
- class NSVisualEffectViewMBS
- class PDFThumbnailViewMBS
- class PDFViewMBS
- class QCViewMBS
- class QLPreviewViewMBS
- class QuartzFilterViewMBS
- class SCNViewMBS
- class SpinningProgressIndicatorMBS
- class WKWebViewMBS
Some methods using this class:
- MAAttachedWindowMBS.Constructor(view as NSViewMBS, point as NSPointMBS = nil, window as NSWindowMBS = nil, onSide as Integer = 12, distance as Double = 0.0)
- MKMapViewMBS.convertCoordinateToPointToView(coordinate as CLLocationCoordinate2DMBS, view as NSViewMBS) as NSPointMBS
- MKMapViewMBS.convertPointToCoordinateFromView(point as NSPointMBS, view as NSViewMBS) as CLLocationCoordinate2DMBS
- NSCellMBS.highlightColorWithFrame(theRect as NSRectMBS, controlView as NSViewMBS) as NSColorMBS
- NSPrintOperationMBS.Constructor(view as NSViewMBS)
- NSPrintOperationMBS.EPSOperationWithView(view as NSViewMBS, rect as NSRectMBS, printInfo as NSPrintInfoMBS, file as folderitem) as NSPrintOperationMBS
- NSPrintOperationMBS.EPSOperationWithView(view as NSViewMBS, rect as NSRectMBS, printInfo as NSPrintInfoMBS, path as string) as NSPrintOperationMBS
- NSTableHeaderCellMBS.drawSortIndicatorWithFrame(cellFrame as NSRectMBS, inView as NSViewMBS, ascending as boolean, priority as Integer)
- NSTableViewMBS.rowViewAtRow(row as Integer, makeIfNecessary as Boolean) as NSViewMBS
- NSTouchMBS.previousLocationInView(View as NSViewMBS) as NSPointMBS
Some properties using for this class:
- DesktopPHLivePhotoControlMBS.View as NSViewMBS
- MKAnnotationViewMBS.detailCalloutAccessoryView as NSViewMBS
- NSMenuItemMBS.view as NSViewMBS
- NSStatusItemMBS.View as NSViewMBS
- NSTabViewItemMBS.view as NSViewMBS
- NSTextFinderMBS.findBarContainer as NSViewMBS
- NSToolbarItemMBS.view as NSViewMBS
- NSViewMBS.opaqueAncestor as NSViewMBS
- WKWebViewControlMBS.View as NSViewMBS
- WKWebViewIOSControlMBS.View as NSViewMBS
Some events using this class:
- CocoaControlMBS.GetView as NSViewMBS
- DesktopNSOutlineControlMBS.view(tableColumn as NSTableColumnMBS, item as NSOutlineViewItemMBS) as NSViewMBS
- DesktopNSSplitViewControlMBS.canCollapseSubview(subview as NSViewMBS) as Boolean
- DesktopNSSplitViewControlMBS.shouldAdjustSizeOfSubview(view as NSViewMBS) as Boolean
- MapKitViewControlMBS.didAddOverlayViews(mapView as MKMapViewMBS, overlayViews() as NSViewMBS)
- NSCollectionViewControlMBS.didEndDisplayingSupplementaryView(view as NSViewMBS, elementKind as String, indexPath as NSIndexPathMBS)
- NSCollectionViewControlMBS.willDisplaySupplementaryView(view as NSViewMBS, elementKind as String, indexPath as NSIndexPathMBS)
- NSSplitViewControlMBS.canCollapseSubview(subview as NSViewMBS) as Boolean
- NSSplitViewControlMBS.shouldAdjustSizeOfSubview(view as NSViewMBS) as Boolean
- NSTableViewMBS.view(tableColumn as NSTableColumnMBS, row as Integer) as NSViewMBS
Some examples using this class:
- /AVFoundation/Simple Player
- /MacCocoa/Core Animation
- /MacCocoa/KeyValueObserver
- /MacCocoa/NSStatusItem/Statusitem with PopOver
- /MacCocoa/NSStatusItem/Statusitem with textfield in menubar
- /MacCocoa/Slide Views Animation
- /MacControls/NSTextField Focus on KeyDown
- /MacExtras/MAAttachedWindow/MAAttachedWindow Test
- /MacFrameworks/Cocoa Controls/Custom NSView
- /MacFrameworks/Cocoa Controls/TextView with events
Blog Entries
- MBS Xojo Plugins, version 23.4pr5
- News from the MBS Xojo Plugins Version 22.2
- MonkeyBread Software Releases the MBS Xojo Plugins in version 22.2
- News from the MBS Xojo Plugins Version 22.1
- MonkeyBread Software Releases the MBS Xojo Plugins in version 21.4
- MBS Real Studio Plugins, version 12.1fc
- MBS Plugins 11.1 Release notes
- MBS Plugins 10.3 Release Notes
- MBS REALbasic plug-ins version 9.4
- MonkeyBread Software Releases the MBS REALbasic plug-ins 8.6
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
- Version 20.3
- Added flipped parameter to RenderImage method in NSViewMBS class.
- Version 18.4
- Added filter methods to NSViewMBS.
- Version 18.0
- Added NSViewTooltipMBS class and NSViewMBS.addToolTipRect method.
- 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
