Xojo Conferences
XDCMay2019MiamiUSA

Platforms to show: All Mac Windows Linux Cross-Platform

NSViewControllerMBS.available as boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
shared method Cocoa MBS MacBase Plugin 11.2 Yes No No Yes, macOS only No
Function: Whether this class is available.
Example:
MsgBox str(NSViewControllerMBS.available)
Notes: Returns true on Mac OS X 10.5 or newer.

Feedback, Comments & Corrections

NSViewControllerMBS.contentViewController(window as NSWindowMBS) as NSViewControllerMBS
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
shared method Cocoa MBS MacBase Plugin 18.4 Yes No No Yes, macOS only No
Function: Queries content view's content view controller for the window.
Notes:
Returns nil if the window has no controller.

The main content view controller for the window.

The value of this property provides the content view of the window. Setting this value removes the existing value of contentView and makes the contentViewController.view the main content view for the window. By default, the value of this property is nil.

Feedback, Comments & Corrections

NSViewControllerMBS.windowWithContentViewController(ViewController as NSViewControllerMBS) as NSWindowMBS
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
shared method Cocoa MBS MacBase Plugin 18.4 Yes No No Yes, macOS only No
Function: Creates a titled window that contains the specified content view controller.
Notes:
ViewController: The view controller that provides the main content view for the window. The window’s contentView property is set to contentViewController.view.

Returns a window with the content view controller set to the passed-in view controller object.

This method creates a basic window object that is titled, closable, resizable, and miniaturizable. By default, the window's title is automatically bound to the title of contentViewController. You can control the size of the window by using Auto Layout and applying size constraints to the view or its subviews. The initial size of the window is set to the initial size of contentView (that is, the size of contentViewController.view). The newly created window has releasedWhenClosed set to NO, and it must be explicitly retained to keep the window instance alive.

Feedback, Comments & Corrections

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




Links
MBS FileMaker blog