Platforms to show: All Mac Windows Linux Cross-Platform

Next items

NSWindowMBS.acceptsMouseMovedEvents as boolean
method, Cocoa, MBS REALbasic CocoaBase Plugin (NSView), class NSWindowMBS, Console safe, Plugin version: 8.4, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.

Function: Whether the receiver is to accept mouse-moved events.
Notes:
True to have the receiver accept mouse-moved events (and to distribute them to its responders); false to not accept such events.
(Read and Write computed property)
NSWindowMBS.allowsConcurrentViewDrawing as boolean
method, Cocoa, MBS REALbasic CocoaBase Plugin (NSView), class NSWindowMBS, Console safe, Plugin version: 9.6, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.

Function: Whether threading of view drawing is enabled for this window.
Notes:
Whether threading of view drawing should be enabled for this window. Defaults to true. When this is set to true, AppKit's view system is allowed to perform drawRect activity for the window's views on threads other than the main thread, for views that have canDrawConcurrently = true. When this is set to false, the window's views will be drawn serially as on 10.5 and earlier, even though some of the views may have canDrawConcurrently = true.

Available on Mac OS X 10.6.
(Read and Write computed property)
NSWindowMBS.allowsToolTipsWhenApplicationIsInactive as boolean
method, Cocoa, MBS REALbasic CocoaBase Plugin (NSView), class NSWindowMBS, Console safe, Plugin version: 9.6, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.

Function: Whether this window displays tooltips even when the application is in the background.
Notes:
Default is false. Set to true to allow a window to display tooltips even when the application is in the background. Note that, enabling tooltips in an inactive application will cause the app to do work any time the mouse passes over the window. This can degrade system performance.
(Read and Write computed property)
NSWindowMBS.alphaValue as double
method, Cocoa, MBS REALbasic CocoaBase Plugin (NSView), class NSWindowMBS, Console safe, Plugin version: 8.4, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.

Function: The receiver’s alpha value.
Example:
if TargetCocoa then
dim w as new NSWindowMBS(window1)
w.alphaValue=0.5
else
MsgBox "this sample requires REALbasic Cocoa Target"
end if
Notes: (Read and Write computed property)
NSWindowMBS.animator as NSWindowMBS
method, Cocoa, MBS REALbasic CocoaBase Plugin (NSView), class NSWindowMBS, Console safe, Plugin version: 10.0, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.

Function: Returns the proxy object for this window which animates.
Example:
dim v as NSWindowMBS // your NSWindowMBS object

v.alphaValue = 0.5 // switch alpha directly
v.animator.alphaValue = 0.5 // switch alpha animated
NSWindowMBS.areCursorRectsEnabled as boolean
method, Cocoa, MBS REALbasic CocoaBase Plugin (NSView), class NSWindowMBS, Console safe, Plugin version: 9.6, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.

Function: Whether the window’s cursor rectangles are enabled.
Notes: Available in Mac OS X v10.0 and later.
NSWindowMBS.aspectRatio as NSSizeMBS
method, Cocoa, MBS REALbasic CocoaBase Plugin (NSView), class NSWindowMBS, Console safe, Plugin version: 9.6, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.

Function: The window’s aspect ratio, which constrains the size of its frame rectangle to integral multiples of this ratio when the user resizes it.
Notes: (Read and Write computed property)
NSWindowMBS.attachedSheet as NSWindowMBS
method, Cocoa, MBS REALbasic CocoaBase Plugin (NSView), class NSWindowMBS, Console safe, Plugin version: 9.6, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.

Function: Returns the sheet attached to the window.
Notes:
The sheet attached to the window; nil when the window doesn’t have a sheet attached.

Available in Mac OS X v10.1 and later.
NSWindowMBS.Autodisplay as boolean
method, Cocoa, MBS REALbasic CocoaBase Plugin (NSView), class NSWindowMBS, Console safe, Plugin version: 9.6, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.

Function: Whether the window automatically displays views that need to be displayed.
Notes:
Automatic display typically occurs on each pass through the event loop.

Available in Mac OS X v10.0 and later.
(Read and Write computed property)
NSWindowMBS.backgroundColor as NSColorMBS
method, Cocoa, MBS REALbasic CocoaBase Plugin (NSView), class NSWindowMBS, Console safe, Plugin version: 8.6, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.

Function: The window background color.
Notes: (Read and Write computed property)
NSWindowMBS.backingLocation as integer
method, Cocoa, MBS REALbasic CocoaBase Plugin (NSView), class NSWindowMBS, Console safe, Plugin version: 9.6, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.

Function: Indicates the window’s backing store location.
Notes:
The location of the window’s backing store. See “Constants” for possible values.
Available in Mac OS X v10.5 and later.
NSWindowMBS.backingType as integer
method, Cocoa, MBS REALbasic CocoaBase Plugin (NSView), class NSWindowMBS, Console safe, Plugin version: 9.6, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.

Function: The window’s backing store type.
Notes:
Use constants like this:

NSBackingStoreRetained= 0The window uses a buffer, but draws directly to the screen where possible and to the buffer for obscured portions. You should not use this mode. It combines the limitations of NSBackingStoreNonretained with the memory use of NSBackingStoreBuffered. The original NeXTSTEP implementation was an interesting compromise that worked well with fast memory mapped framebuffers on the CPU bus—something that hasn't been in general use since around 1994. These tend to have performance problems. In Mac OS X 10.5 and later, requests for retained windows will result in the window system creating a buffered window, as that better matches actual use. Available in Mac OS X v10.0 and later.
NSBackingStoreNonretained= 1The window draws directly to the screen without using any buffer. You should not use this mode. It exists primarily for use in the original Classic Blue Box. It does not support Quartz drawing, alpha blending, or opacity. Moreover, it does not support hardware acceleration, and interferes with system-wide display acceleration. If you use this mode, your application must manage visibility region clipping itself, and manage repainting on visibility changes. Available in Mac OS X v10.0 and later.
NSBackingStoreBuffered= 2The window renders all drawing into a display buffer and then flushes it to the screen. You should use this mode. It supports hardware acceleration, Quartz drawing, and takes advantage of the GPU when possible. It also supports alpha channel drawing, opacity controls, using the compositor. Available in Mac OS X v10.0 and later.
(Read and Write computed property)
NSWindowMBS.becomeKeyWindow
method, Cocoa, MBS REALbasic CocoaBase Plugin (NSView), class NSWindowMBS, Console safe, Plugin version: 9.6, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.

Function: Invoked automatically to inform the window that it has become the key window; never invoke this method directly.
Notes: This method reestablishes the window’s first responder, sends the becomeKeyWindow message to that object if it responds, and posts an NSWindowDidBecomeKeyNotification to the default notification center.
NSWindowMBS.becomeMainWindow
method, Cocoa, MBS REALbasic CocoaBase Plugin (NSView), class NSWindowMBS, Console safe, Plugin version: 9.6, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.

Function: Invoked automatically to inform the window that it has become the main window; never invoke this method directly.
NSWindowMBS.cacheImageInRect(r as NSRectMBS)
method, Cocoa, MBS REALbasic CocoaBase Plugin (NSView), class NSWindowMBS, Console safe, Plugin version: 9.6, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.

Function: Stores the window’s raster image from a given rectangle expressed in the window’s base coordinate system.
Notes:
This method allows the window to perform temporary drawing, such as a band around the selection as the user drags the mouse, and to quickly restore the previous image by invoking restoreCachedImage and flushWindowIfNeeded. The next time the window displays, it discards its cached image rectangles. You can also explicitly use discardCachedImage to free the memory occupied by cached image rectangles. aRect is made integral before caching the image to avoid antialiasing artifacts.

Only the last cached rectangle is remembered and can be restored.
NSWindowMBS.canBecomeKeyWindow as boolean
method, Cocoa, MBS REALbasic CocoaBase Plugin (NSView), class NSWindowMBS, Console safe, Plugin version: 9.6, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.

Function: Indicates whether the window can become the key window.
Notes: Attempts to make the window the key window are abandoned if this method returns false. The NSWindow implementation returns true if the window has a title bar or a resize bar, or false otherwise.
NSWindowMBS.canBecomeMainWindow as boolean
method, Cocoa, MBS REALbasic CocoaBase Plugin (NSView), class NSWindowMBS, Console safe, Plugin version: 9.6, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.

Function: Indicates whether the window can become the application’s main window.
Notes: Attempts to make the window the main window are abandoned if this method returns false. The NSWindow implementation returns true if the window is visible, is not an NSPanel object, and has a title bar or a resize mechanism. Otherwise it returns false.
NSWindowMBS.canBecomeVisibleWithoutLogin as boolean
method, Cocoa, MBS REALbasic CocoaBase Plugin (NSView), class NSWindowMBS, Console safe, Plugin version: 9.6, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.

Function: Indicates whether the window can be displayed at the login window.
Notes:
Default: false.
Available in Mac OS X v10.5 and later.
(Read and Write computed property)
NSWindowMBS.canBeVisibleOnAllSpaces as boolean
method, Cocoa, MBS REALbasic CocoaBase Plugin (NSView), class NSWindowMBS, Console safe, Plugin version: 9.6, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.

Function: Indicates whether the window can be visible on all spaces or on only one space at a time.
Notes:
true when the window can be visible on all spaces; false when it can be visible on only one space at a time.

The default is false.

Available in Mac OS X v10.5 and later.
Deprecated in Mac OS X v10.5.
(Read and Write computed property)
NSWindowMBS.canHide as boolean
method, Cocoa, MBS REALbasic CocoaBase Plugin (NSView), class NSWindowMBS, Console safe, Plugin version: 8.6, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.

Function: Specifies whether the window can be hidden when its application becomes hidden (during execution of the NSApplication hide method).
Notes: (Read and Write computed property)
NSWindowMBS.canStoreColor as boolean
method, Cocoa, MBS REALbasic CocoaBase Plugin (NSView), class NSWindowMBS, Console safe, Plugin version: 9.6, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.

Function: Indicates whether the window has a depth limit that allows it to store color values.
NSWindowMBS.Center
method, Cocoa, MBS REALbasic CocoaBase Plugin (NSView), class NSWindowMBS, Console safe, Plugin version: 8.6, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.

Function: Sets the window’s location to the center of the screen.
Notes:
The window is placed exactly in the center horizontally and somewhat above center vertically. Such a placement carries a certain visual immediacy and importance. This method doesn’t put the receiver onscreen, however; use makeKeyAndOrderFront (show) to do that.

You typically use this method to place a window—most likely an alert dialog—where the user can’t miss it. This method is invoked automatically when a panel is placed on the screen by the runModalForWindow method of the NSApplication class.
class NSWindowMBS
class, Cocoa, MBS REALbasic CocoaBase Plugin (NSView), class NSWindowMBS, Console safe, Plugin version: 8.2, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.

Function: The Cocoa class for a window.
NSWindowMBS.ClearFocus
method, Cocoa, MBS REALbasic CocoaBase Plugin (NSView), class NSWindowMBS, Console safe, Plugin version: 8.2, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.

Function: Clears the focus.
Notes: Moves the focus back to the window.
NSWindowMBS.Close
method, Cocoa, MBS REALbasic CocoaBase Plugin (NSView), class NSWindowMBS, Console safe, Plugin version: 8.2, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.

Function: Closes the window.
NSWindowMBS.collectionBehavior as integer
method, Cocoa, MBS REALbasic CocoaBase Plugin (NSView), class NSWindowMBS, Console safe, Plugin version: 9.6, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.

Function: Identifies the window’s behavior in window collections.
Notes:
Available in Mac OS X v10.5 and later.
(Read and Write computed property)
NSWindowMBS.colorSpace as NSColorSpaceMBS
method, Cocoa, MBS REALbasic CocoaBase Plugin (NSView), class NSWindowMBS, Console safe, Plugin version: 9.6, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.

Function: The window’s color space.
Notes:
Available in Mac OS X v10.6 and later.
(Read and Write computed property)
NSWindowMBS.Constructor(w as window)
method, Cocoa, MBS REALbasic CocoaBase Plugin (NSView), class NSWindowMBS, Not console safe, Plugin version: 9.4, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.

Function: Creates a NSWindow for the given REALbasic window.
Example:
dim w as new NSWindowMBS(window1)

MsgBox w.Title
Notes:
In plugin version 9.4 and newer this works only with Cocoa windows.
In plugin version 9.7 and newer you can use it also for Carbon windows.

See also:

NSWindowMBS.Constructor(x as double, y as double, w as double, h as double, styleMask as integer, BackingStoreType as integer, deferCreation as boolean)
method, Cocoa, MBS REALbasic CocoaBase Plugin (NSView), class NSWindowMBS, Console safe, Plugin version: 8.4, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.

Function: The constructor to create a new Cocoa Windows.
Notes:
x,y,w,h:
Location and size of the window’s content area in screen coordinates. Note that the window server limits window position coordinates to ±16,000 and sizes to 10,000.

styleMask:
The window’s style. Either it can be NSBorderlessWindowMask, or it can contain any of the options described in the constants, combined using the bitwiseOR function. Borderless windows display none of the usual peripheral elements and are generally useful only for display or caching purposes; you should normally not need to create them. Also, note that a window’s style mask should include NSTitledWindowMask if it includes any of the others.

bufferingType:
Specifies how the drawing done in the window is buffered by the window device, and possible values are described in “Constants.”

deferCreation:
Specifies whether the window server creates a window device for the window immediately. When true, the window server defers creating the window device until the window is moved onscreen. All display messages sent to the window or its views are postponed until the window is created, just before it’s moved onscreen.

Initialized NSWindow object.

This method is the designated initializer for the NSWindow class.

Deferring the creation of the window improves launch time and minimizes the virtual memory load on the window server.

The new window creates a view to be its default content view. You can replace it with your own object by using the ContentView property.

See also:

NSWindowMBS.contentAspectRatio as NSSizeMBS
method, Cocoa, MBS REALbasic CocoaBase Plugin (NSView), class NSWindowMBS, Console safe, Plugin version: 9.6, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.

Function: The aspect ratio (height in relation to width) of the window’s content view, constraining the dimensions of its content rectangle to integral multiples of that ratio when the user resizes it.
Notes:
Available in Mac OS X v10.3 and later
(Read and Write computed property)
NSWindowMBS.contentMaxSize as NSSizeMBS
method, Cocoa, MBS REALbasic CocoaBase Plugin (NSView), class NSWindowMBS, Console safe, Plugin version: 9.6, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.

Function: The maximum size of the window’s content view.
Notes:
Available in Mac OS X v10.3 and later.
(Read and Write computed property)
NSWindowMBS.contentMinSize as NSSizeMBS
method, Cocoa, MBS REALbasic CocoaBase Plugin (NSView), class NSWindowMBS, Console safe, Plugin version: 9.6, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.

Function: The minimum size of the window’s content view.
Notes:
Available in Mac OS X v10.3 and later.
(Read and Write computed property)
NSWindowMBS.contentResizeIncrements as NSSizeMBS
method, Cocoa, MBS REALbasic CocoaBase Plugin (NSView), class NSWindowMBS, Console safe, Plugin version: 9.6, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.

Function: The window’s content-view resizing increments.
Notes:
Available in Mac OS X v10.3 and later.
(Read and Write computed property)
NSWindowMBS.contentView as NSViewMBS
method, Cocoa, MBS REALbasic CocoaBase Plugin (NSView), class NSWindowMBS, Console safe, Plugin version: 8.4, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.

Function: The receiver’s content view, the highest accessible NSView object in the receiver’s view hierarchy.
Notes: (Read and Write computed property)
NSWindowMBS.convertBaseToScreen(p as NSPointMBS) as NSPointMBS
method, Cocoa, MBS REALbasic CocoaBase Plugin (NSView), class NSWindowMBS, Console safe, Plugin version: 9.6, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.

Function: Converts a given point from the window’s base coordinate system to the screen coordinate system.
NSWindowMBS.convertScreenToBase(p as NSPointMBS) as NSPointMBS
method, Cocoa, MBS REALbasic CocoaBase Plugin (NSView), class NSWindowMBS, Console safe, Plugin version: 9.6, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.

Function: Converts a given point from the screen coordinate system to the window’s base coordinate system.
NSWindowMBS.currentEvent as NSEventMBS
method, Cocoa, MBS REALbasic CocoaBase Plugin (NSView), class NSWindowMBS, Console safe, Plugin version: 9.6, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.

Function: Returns the event currently being processed by the application, by invoking NSApplication’s currentEvent method.
Notes: Returns the event being processed by the application.
NSWindowMBS.dataWithEPSInsideRect(r as NSRectMBS) as string
method, Cocoa, MBS REALbasic CocoaBase Plugin (NSView), class NSWindowMBS, Console safe, Plugin version: 9.6, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.

Function: Returns EPS data that draws the region of the window within a given rectangle.
Notes: This data can be placed on a pasteboard, written to a file, or used to create an NSImage object.
NSWindowMBS.dataWithPDFInsideRect(r as NSRectMBS) as string
method, Cocoa, MBS REALbasic CocoaBase Plugin (NSView), class NSWindowMBS, Console safe, Plugin version: 9.6, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.

Function: Returns PDF data that draws the region of the window within a given rectangle.
Notes: This data can be placed on a pasteboard, written to a file, or used to create an NSImage object.
NSWindowMBS.deepestScreen as NSScreenMBS
method, Cocoa, MBS REALbasic CocoaBase Plugin (NSView), class NSWindowMBS, Console safe, Plugin version: 9.6, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.

Function: Returns the deepest screen the window is on (it may be split over several screens).
Notes: The deepest screen the window is on; nil when the window is offscreen.
NSWindowMBS.deminiaturize
method, Cocoa, MBS REALbasic CocoaBase Plugin (NSView), class NSWindowMBS, Console safe, Plugin version: 8.4, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.

Function: This action method deminimizes the receiver.
Notes: Invoke this method to programmatically deminimize a minimized window in the Dock.
NSWindowMBS.depthLimit as integer
method, Cocoa, MBS REALbasic CocoaBase Plugin (NSView), class NSWindowMBS, Console safe, Plugin version: 9.6, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.

Function: Returns the depth limit of the window.
Notes:
The value returned can be examined with the Application Kit functions NSPlanarFromDepth, NSColorSpaceFromDepth, NSBitsPerSampleFromDepth, and NSBitsPerPixelFromDepth.
(Read and Write computed property)
NSWindowMBS.disableCursorRects
method, Cocoa, MBS REALbasic CocoaBase Plugin (NSView), class NSWindowMBS, Console safe, Plugin version: 9.6, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.

Function: Disables all cursor rectangle management within the window.
Notes: Use this method when you need to do some special cursor manipulation and you don’t want the Application Kit interfering.
NSWindowMBS.disableFlushWindow
method, Cocoa, MBS REALbasic CocoaBase Plugin (NSView), class NSWindowMBS, Console safe, Plugin version: 9.6, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.

Function: Disables the flushWindow method for the window.
Notes:
If the window is buffered, disabling flushWindow prevents drawing from being automatically flushed by the NSView display... methods from the window’s backing store to the screen. This method permits several views to be drawn before the results are shown to the user.

Flushing should be disabled only temporarily, while the window’s display is being updated. Each disableFlushWindow message must be paired with a subsequent enableFlushWindow message. Invocations of these methods can be nested; flushing isn’t reenabled until the last (unnested) enableFlushWindow message is sent.
NSWindowMBS.disableScreenUpdatesUntilFlush
method, Cocoa, MBS REALbasic CocoaBase Plugin (NSView), class NSWindowMBS, Console safe, Plugin version: 9.6, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.

Function: Disables the window’s screen updates until the window is flushed.
Notes:
This method can be invoked to synchronize hardware surface flushes with the window’s flushes. The window immediately disables screen updates using the NSDisableScreenUpdates function and reenables screen updates when the window flushes. Sending this message multiple times during a window update cycle has no effect.

Available in Mac OS X v10.4 and later.
NSWindowMBS.discardCachedImage
method, Cocoa, MBS REALbasic CocoaBase Plugin (NSView), class NSWindowMBS, Console safe, Plugin version: 9.6, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.

Function: Discards all of the window’s cached image rectangles.
Notes: An NSWindow object automatically discards its cached image rectangles when it displays.
NSWindowMBS.discardCursorRects
method, Cocoa, MBS REALbasic CocoaBase Plugin (NSView), class NSWindowMBS, Console safe, Plugin version: 9.6, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.

Function: Invalidates all cursor rectangles in the window.
Notes: This method is invoked by resetCursorRects to clear out existing cursor rectangles before resetting them. You shouldn’t invoke it in the code you write, but you might want to override it to change its behavior.
NSWindowMBS.display
method, Cocoa, MBS REALbasic CocoaBase Plugin (NSView), class NSWindowMBS, Console safe, Plugin version: 9.6, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.

Function: Passes a display message down the window’s view hierarchy, thus redrawing all views within the window, including the frame view that draws the border, title bar, and other peripheral elements.
Notes: You rarely need to invoke this method. NSWindow objects normally record which of their views need display and display them automatically on each pass through the event loop.
NSWindowMBS.displayIfNeeded
method, Cocoa, MBS REALbasic CocoaBase Plugin (NSView), class NSWindowMBS, Console safe, Plugin version: 9.6, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.

Function: Passes a displayIfNeeded message down the window’s view hierarchy, thus redrawing all views that need to be displayed, including the frame view that draws the border, title bar, and other peripheral elements.
Notes:
This method is useful when you want to modify some number of views and then display only the ones that were modified.

You rarely need to invoke this method. NSWindow objects normally record which of their views need display and display them automatically on each pass through the event loop.
NSWindowMBS.displaysWhenScreenProfileChanges as boolean
method, Cocoa, MBS REALbasic CocoaBase Plugin (NSView), class NSWindowMBS, Console safe, Plugin version: 9.6, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.

Function: Indicates whether the window context should be updated when the screen profile changes or when the window moves to a different screen.
Notes:
Returns true when the window context should be updated when the screen profile changes or when the window moves to a different screen; otherwise, false.

The default value is false.

Available in Mac OS X v10.4 and later.
(Read and Write computed property)
NSWindowMBS.enableCursorRects
method, Cocoa, MBS REALbasic CocoaBase Plugin (NSView), class NSWindowMBS, Console safe, Plugin version: 9.6, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.

Function: Reenables cursor rectangle management within the window after a disableCursorRects message.
NSWindowMBS.enableFlushWindow
method, Cocoa, MBS REALbasic CocoaBase Plugin (NSView), class NSWindowMBS, Console safe, Plugin version: 9.6, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.

Function: Reenables the flushWindow method for the window after it was disabled through a previous disableFlushWindow message.
NSWindowMBS.firstResponder as NSResponderMBS
method, Cocoa, MBS REALbasic CocoaBase Plugin (NSView), class NSWindowMBS, Console safe, Plugin version: 9.6, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.

Function: The window’s first responder.
Notes:
The first responder is usually the first object in a responder chain to receive an event or action message. In most cases, the first responder is a view object in that the user selects or activates with the mouse or keyboard.

You can use the firstResponder method in custom subclasses of responder classes (NSWindow, NSApplication, NSView, and subclasses) to determine if an instance of the subclass is currently the first responder. You can also use it to help locate a text field that currently has first-responder status. For more on this subject, see Event Handling Basics (on developer.apple.com).
NSWindowMBS.flushWindow
method, Cocoa, MBS REALbasic CocoaBase Plugin (NSView), class NSWindowMBS, Console safe, Plugin version: 9.6, Mac OS X: Works, Windows: Does nothing, Linux x86: Does nothing, Feedback.

Function: Flushes the window’s offscreen buffer to the screen if the window is buffered and flushing is enabled.
Notes: Does nothing for other display devices, such as a printer. This method is automatically invoked by the NSWindow display and displayIfNeeded methods and the corresponding NSView display and displayIfNeeded methods.

Previous items Next items

The items on this page are in the following plugins: MBS REALbasic CocoaBase Plugin.




Links
MBS Realbasic tutorial videos - Pfarrgemeinde St. Arnulf Nickenich