NSWindowMBS class
Online Documentation - Statistics - FAQ - Plugin Parts (All , Dependencies ) - Class hierarchy
New in Version
22.2
22.3
22.4
22.5
23.0
23.1
23.2
23.3
23.4
23.5
24.0
24.1
The list of the topics ,
classes ,
interfaces ,
controls ,
modules ,
global methods by category ,
global methods by name ,
screenshots ,
licenses
and examples .
Platforms to show: All Mac Windows Linux Cross-Platform
NSWindowMBS class
Super class: NSResponderMBS
The Cocoa class for a window.
Example
// add gray layer over Xojo window. Or hide it on second call, show on third call, etc... If view = Nil Then // view is property in window/module Dim win As NSWindowMBS = Self.NSWindowMBS view = New NSViewMBS (0 , 0 , Width, Height) win.contentView.AddSubView(view) view.wantsLayer = True view.autoresizesSubviews = True view.autoresizingMask = view.NSViewWidthSizable + view.NSViewHeightSizable Dim layer As CALayerMBS = view.layer layer.backgroundColor = CGColorMBS .CreateDeviceGray(0.3 , 0.5 ) Else // show or hide view.isHidden = Not view.isHidden End If
Subclass of the NSResponderMBS class.
88 properties
2 shared properties
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
68 constants
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 22.1
Added Constructor for NSWindowMBS taking DesktopWindow.
Version 21.4
Version 20.3
Added performWindowDragWithEvent method to NSWindowMBS class.
Added SubTitle, toolbarStyle and titlebarSeparatorStyle properties to NSWindowMBS class.
Version 17.3
The items on this page are in the following plugins: MBS MacBase Plugin , MBS MacExtras Plugin .
NSWindowDelegateMBS
-
NSWindowRestoreHandlerMBS