Platforms to show: All Mac Windows Linux Cross-Platform
NSWindowMBS class
Super class: NSResponderMBS
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
class | Cocoa | MBS MacBase Plugin | 8.2 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | Desktop & iOS |
Subclass of the NSResponderMBS class.
- 88 properties
- property acceptsMouseMovedEvents as boolean
- property allowsConcurrentViewDrawing as boolean
- property allowsToolTipsWhenApplicationIsInactive as boolean
- property alphaValue as Double
- property animationBehavior as Integer
- property aspectRatio as NSSizeMBS
- property Autodisplay as boolean
- property backgroundColor as NSColorMBS
- property backingLocation as Integer
- property backingScaleFactor as Double
- property backingType as Integer
- property canBecomeKeyWindow as boolean
- property canBecomeMainWindow as boolean
- property canBecomeVisibleWithoutLogin as boolean
- property canHide as boolean
- property canStoreColor as boolean
- property className as string
- property classPath as string
- property collectionBehavior as Integer
- property colorSpace as NSColorSpaceMBS
- property contentAspectRatio as NSSizeMBS
- property contentLayoutRect as NSRectMBS
- property contentMaxSize as NSSizeMBS
- property contentMinSize as NSSizeMBS
- property contentResizeIncrements as NSSizeMBS
- property contentView as NSViewMBS
- property currentEvent as NSEventMBS
- property deepestScreen as NSScreenMBS
- property depthLimit as Integer
- property displaysWhenScreenProfileChanges as boolean
- property frame as NSRectMBS
- property hasDynamicDepthLimit as boolean
- property hasShadow as boolean
- Property Height as Double
- property hidesOnDeactivate as boolean
- property identifier as string
- property ignoresMouseEvents as boolean
- property initialFirstResponder as NSViewMBS
- property isDocumentEdited as boolean
- property isExcludedFromWindowsMenu as boolean
- property isFlushWindowDisabled as boolean
- property isKeyWindow as boolean
- property isMainWindow as boolean
- property isMiniaturized as boolean
- property isMovableByWindowBackground as boolean
- property isOnActiveSpace as boolean
- property isOneShot as boolean
- property isOpaque as boolean
- property isSheet as boolean
- property isZoomed as boolean
- Property Left as Double
- property Level as Integer
- property maxSize as NSSizeMBS
- property miniwindowImage as Variant
- property miniwindowTitle as String
- property minSize as NSSizeMBS
- property Movable as boolean
- property parentWindow as NSWindowMBS
- property preferredBackingLocation as Integer
- property preservesContentDuringLiveResize as boolean
- property preventsApplicationTerminationWhenModal as boolean
- property representedFile as folderitem
- property representedFilename as string
- property representedURL as string
- property resizeIncrements as NSSizeMBS
- property Restorable as boolean
- property screen as NSScreenMBS
- property sharingType as Integer
- property showsResizeIndicator as boolean
- property showsToolbarButton as boolean
- property styleMask as Integer
- property SubTitle as String
- property tabbingIdentifier as String
- property tabbingMode as Integer
- property Title as String
- property titlebarAppearsTransparent as Boolean
- property titlebarSeparatorStyle as Integer
- property titleVisibility as Integer
- property toolbar as Variant
- property toolbarStyle as Integer
- Property Top as Double
- property viewsNeedDisplay as boolean
- property Visible as boolean
- Property Width as Double
- property windowController as NSWindowControllerMBS
- property windowNumber as Integer
- property worksWhenModal as boolean
- property frameAutosaveName as string
- 2 shared properties
- shared property allowsAutomaticWindowTabbing as Boolean
- shared property userTabbingPreference as Integer
- 114 methods
- method addChildWindow(win as DesktopWindow, order as integer)
- method addChildWindow(win as NSWindowMBS, order as Integer)
- method addChildWindow(win as window, order as Integer)
- method addTabbedWindow(win as NSWindowMBS, ordered as Integer)
- method animator as NSWindowMBS
- method areCursorRectsEnabled as boolean
- method attachedSheet as NSWindowMBS
- method autorecalculatesContentBorderThicknessForEdge(edge as Integer) as boolean
- method becomeKeyWindow
- method becomeMainWindow
- method cacheImageInRect(r as NSRectMBS)
- method Center
- method childWindows as NSWindowMBS()
- method ClearFocus
- method Close
- method Constructor(w as DesktopWindow)
- method Constructor(w as window)
- method Constructor(x as Double, y as Double, w as Double, h as Double, styleMask as Integer, BackingStoreType as Integer = 0, deferCreation as boolean = false, canBecomeKeyWindow as boolean = false)
- method contentBorderThicknessForEdge(edge as Integer) as Double
- method contentRectForFrameRect(windowFrame as NSRectMBS) as NSRectMBS
- method convertBaseToScreen(p as NSPointMBS) as NSPointMBS
- method convertScreenToBase(p as NSPointMBS) as NSPointMBS
- method dataWithEPSInsideRect(r as NSRectMBS) as Memoryblock
- method dataWithPDFInsideRect(r as NSRectMBS) as Memoryblock
- method deminiaturize
- method disableCursorRects
- method disableFlushWindow
- method disableScreenUpdatesUntilFlush
- method disableSnapshotRestoration
- method discardCachedImage
- method discardCursorRects
- method display
- method displayIfNeeded
- method dockTile as Variant
- method dragImage(image as NSImageMBS, viewLocation as NSPointMBS, offset as NSSizeMBS, NSEvent as NSEventMBS, pboard as NSPasteboardMBS, source as NSViewMBS, slideFlag as boolean)
- method enableCursorRects
- method enableFlushWindow
- method enableSnapshotRestoration
- method endEditingFor(anObject as object = nil)
- method fieldEditor(createFlag as boolean = True, forObject as object = nil) as Variant
- method firstResponder as NSResponderMBS
- method flushWindow
- method flushWindowIfNeeded
- method frameRectForContentRect(windowContent as NSRectMBS) as NSRectMBS
- method GetFrame(byref left as Double, byref top as Double, byref width as Double, byref height as Double)
- method gState as Integer
- method Hide
- method inLiveResize as boolean
- method invalidateCursorRectsForView(View as NSViewMBS)
- method invalidateRestorableState
- method invalidateShadow
- method keyDown(e as NSEventMBS)
- method makeFirstResponder(r as NSResponderMBS) as boolean
- method makeKeyAndOrderFront
- method makeKeyWindow
- method makeMainWindow
- method mergeAllWindows
- method miniaturize
- method moveTabToNewWindow
- method orderBack
- method orderFront
- method orderFrontRegardless
- method orderOut
- method PerformClose
- method performMiniaturize
- method performWindowDragWithEvent(event as NSEventMBS)
- method performZoom
- method print
- method registerForDraggedTypes(Types() as string)
- method removeChildWindow(win as NSWindowMBS)
- method removeChildWindow(win as window)
- method resetCursorRects
- method resignKeyWindow
- method resignMainWindow
- method resizeFlags as Integer
- method restoreCachedImage
- method runToolbarCustomizationPalette
- method saveFrameUsingName(s as String)
- method selectKeyViewFollowingView(view as NSViewMBS)
- method selectKeyViewPrecedingView(view as NSViewMBS)
- method selectNextKeyView
- method selectNextTab
- method selectPreviousKeyView
- method selectPreviousTab
- method sendEvent(e as NSEventMBS)
- method setAutorecalculatesContentBorderThickness(flag as boolean, edge as Integer)
- method setBottomCornerRounded(flag as boolean)
- method setContentBorderThickness(thickness as Double, edge as Integer)
- method setContentSize(size as NSSizeMBS)
- method setFrame(frameRect as NSRectMBS)
- method setFrame(frameRect as NSRectMBS, display as boolean)
- method setFrame(frameRect as NSRectMBS, display as boolean, animated as boolean)
- method SetFrame(left as Double, top as Double, width as Double, height as Double)
- method setFrameAutosaveName(name as String) as boolean
- method setFrameFromString(s as String)
- method setFrameOrigin(point as NSPointMBS)
- method setFrameTopLeftPoint(point as NSPointMBS)
- method setFrameUsingName(name as String, force as boolean = false) as boolean
- method setRestorationClass
- method setTitleWithRepresentedFile(filename as folderitem)
- method setTitleWithRepresentedFilename(filename as string)
- method Show
- method standardWindowButton(button as Integer) as Variant
- method stringWithSavedFrame as String
- method tabbedWindows as NSWindowMBS()
- method toggleFullScreen
- method toggleTabBar
- method toggleToolbarShown
- method toolbarview as NSViewMBS
- method unregisterDraggedTypes
- method update
- method useOptimizedDrawing(value as boolean)
- method WindowHandle as Integer
- method zoom
- 44 shared methods
- shared method contentRectForFrameRect(windowFrame as NSRectMBS, styleMask as UInt32) as NSRectMBS
- shared method frameRectForContentRect(windowContentRect as NSRectMBS, styleMask as UInt32) as NSRectMBS
- shared method minFrameWidthWithTitle(WindowTitle as string, styleMask as UInt32) as Double
- shared method NSDockWindowLevel as Integer
- shared method NSFloatingWindowLevel as Integer
- shared method NSMainMenuWindowLevel as Integer
- shared method NSModalPanelWindowLevel as Integer
- shared method NSNormalWindowLevel as Integer
- shared method NSPopUpMenuWindowLevel as Integer
- shared method NSScreenSaverWindowLevel as Integer
- shared method NSStatusWindowLevel as Integer
- shared method NSSubmenuWindowLevel as Integer
- shared method NSTornOffMenuWindowLevel as Integer
- shared method NSWindowDidBecomeKeyNotification as string
- shared method NSWindowDidBecomeMainNotification as string
- shared method NSWindowDidChangeScreenNotification as string
- shared method NSWindowDidChangeScreenProfileNotification as string
- shared method NSWindowDidDeminiaturizeNotification as string
- shared method NSWindowDidEndLiveResizeNotification as string
- shared method NSWindowDidEndSheetNotification as string
- shared method NSWindowDidEnterFullScreenNotification as string
- shared method NSWindowDidEnterVersionBrowserNotification as string
- shared method NSWindowDidExitFullScreenNotification as string
- shared method NSWindowDidExitVersionBrowserNotification as string
- shared method NSWindowDidExposeNotification as string
- shared method NSWindowDidMiniaturizeNotification as string
- shared method NSWindowDidMoveNotification as string
- shared method NSWindowDidResignKeyNotification as string
- shared method NSWindowDidResignMainNotification as string
- shared method NSWindowDidResizeNotification as string
- shared method NSWindowDidUpdateNotification as string
- shared method NSWindowWillBeginSheetNotification as string
- shared method NSWindowWillCloseNotification as string
- shared method NSWindowWillEnterFullScreenNotification as string
- shared method NSWindowWillEnterVersionBrowserNotification as string
- shared method NSWindowWillExitFullScreenNotification as string
- shared method NSWindowWillExitVersionBrowserNotification as string
- shared method NSWindowWillMiniaturizeNotification as string
- shared method NSWindowWillMoveNotification as string
- shared method NSWindowWillStartLiveResizeNotification as string
- shared method removeFrameUsingName(name as string)
- shared method standardWindowButton(button as Integer, StyleMask as Integer) as Variant
- shared method windowNumberAtPoint(x as Double, y as Double, belowWindowWithWindowNumber as Integer = 0) as Integer
- shared method windowNumbersWithOptions(options as Integer = 0) as Integer()
- 68 constants
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 MAAttachedWindowMBS
- class NSPanelMBS
Some methods using this class:
- DRBurnProgressPanelMBS.beginProgressSheetForBurn(burn as DRBurnMBS, track as DRTrackMBS, docWindow as NSWindowMBS)
- DRBurnProgressPanelMBS.beginProgressSheetForBurn(burn as DRBurnMBS, tracks() as DRTrackMBS, docWindow as NSWindowMBS)
- GKDialogControllerMBS.setParentWindow(parentWindow as NSWindowMBS)
- MAAttachedWindowMBS.attachedWindow(view as NSViewMBS, point as NSPointMBS = nil, window as NSWindowMBS = nil, onSide as Integer = 12, distance as Double = 0.0) as MAAttachedWindowMBS
- NSApplicationMBS.updateWindowsItem(win as NSWindowMBS)
- NSEventMBS.touchesForWindow(win as NSWindowMBS) as NSTouchMBS()
- NSGraphicsMBS.Constructor(targetWindow as NSWindowMBS)
- NSPrintPanelMBS.beginSheetWithPrintInfo(printInfo as NSPrintInfoMBS, win as NSWindowMBS)
- NSWindowDelegateMBS.Constructor(win as NSWindowMBS)
- NSWindowRestoreHandlerMBS.SetRestoredWindow(win as NSWindowMBS)
Some properties using for this class:
- NSApplicationMBS.keyWindow as NSWindowMBS
- NSApplicationMBS.mainWindow as NSWindowMBS
- NSEventMBS.window as NSWindowMBS
- NSStatusItemMBS.Window as NSWindowMBS
- NSTouchMBS.window as NSWindowMBS
- NSViewMBS.window as NSWindowMBS
- NSWindowControllerMBS.window as NSWindowMBS
- NSWindowMBS.parentWindow as NSWindowMBS
Some events using this class:
- NSPopoverMBS.detachableWindowForPopover as NSWindowMBS
- NSWindowDelegateMBS.customWindowsToEnterFullScreenForWindow(win as NSWindowMBS) as NSWindowMBS()
- NSWindowDelegateMBS.didDecodeRestorableState(win as NSWindowMBS, state as NSCoderMBS)
- NSWindowDelegateMBS.restoreStateWithCoder(win as NSWindowMBS, coder as NSCoderMBS)
- NSWindowDelegateMBS.shouldPopUpDocumentPathMenu(win as NSWindowMBS, menu as NSMenuMBS) as boolean
- NSWindowDelegateMBS.startCustomAnimationToEnterFullScreenWithDuration(win as NSWindowMBS, duration as Double)
- NSWindowDelegateMBS.willResizeForVersionBrowser(win as NSWindowMBS, maxPreferredFrameSize as NSSizeMBS, maxAllowedFrameSize as NSSizeMBS) as NSSizeMBS
- NSWindowDelegateMBS.willUseFullScreenContentSize(win as NSWindowMBS, proposedSize as NSSizeMBS) as NSSizeMBS
- NSWindowDelegateMBS.windowDidFailToExitFullScreen(win as NSWindowMBS)
- NSWindowDelegateMBS.windowWillReturnUndoManager(win as NSWindowMBS) as NSUndoManagerMBS
Some examples using this class:
- /AVFoundation/Live Barcode Detection with Vision/Live Barcode Detection with Vision
- /Mac64bit/Contacts/CNContactViewController test
- /MacCocoa/Fullsize Window Content
- /MacCocoa/KeyValueObserver
- /MacCocoa/Save and restore State 2
- /MacCocoa/Unified Bars Example
- /MacControls/Draw full red on screen
- /MacExtras/Test Vibrancy
- /MacFrameworks/Window Selection
- /Overlay/Overlay and window level
Blog Entries
- News from the MBS Xojo Plugins Version 23.3
- MBS Xojo / Real Studio plug-ins in version 16.5
- New for Mac OS X 10.10 in MBS Xojo Plugins
- Please don't call constructors outside new or constructor
- Lion features for Real Studio
- Lion arrived
- Tip of the day: a floating Cocoa HUD window
- MBS Plugins 11.1 Release notes
- MBS Plugins 10.3 Release Notes
- MonkeyBread Software Releases the MBS Plugins 8.2
Xojo Developer Magazine
Release notes
- Version 22.1
- Added Constructor for NSWindowMBS taking DesktopWindow.
- Version 21.4
- Added contentLayoutRect to NSWindowMBS class.
- Version 20.3
- Added performWindowDragWithEvent method to NSWindowMBS class.
- Added SubTitle, toolbarStyle and titlebarSeparatorStyle properties to NSWindowMBS class.
- Version 17.3
- Removed CKOperationMBS.usesBackgroundSession and NSWindowMBS.canBeVisibleOnAllSpaces as Apple removed those.
The items on this page are in the following plugins: MBS MacBase Plugin, MBS MacExtras Plugin.
NSWindowDelegateMBS - NSWindowRestoreHandlerMBS