Xojo Conferences
MBSSep2018MunichDE
XDCMay2019MiamiUSA

Platforms to show: All Mac Windows Linux Cross-Platform

NSWindowControllerMBS.close
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Cocoa MBS MacBase Plugin 13.5 Yes No No Yes, macOS only No
Function: Closes the window if it was loaded.
Notes: Because this method closes the window without asking the user for confirmation, you usually do not invoke it when the Close menu command is chosen. Instead invoke NSWindow's performClose on the receiver's window.

Feedback, Comments & Corrections

NSWindowControllerMBS.Constructor(win as NSWindowMBS)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Cocoa MBS MacBase Plugin 13.5 Yes No No Yes, macOS only No
Function: Returns a window controller initialized with a given window.
Notes:
window: The window object to manage; can be nil.
Returns a newly initialized window controller.
This method is the designated initializer for NSWindowController.

This initializer is useful when a window has been loaded but no window controller is assigned. The default initialization turns on cascading, sets the shouldCloseDocument flag to NO, and sets the window frame autosave name to an empty string. As a side effect, the created window controller is added as an observer of the NSWindowWillCloseNotifications posted by that window object (which is handled by a private method). If you make the window controller a delegate of the window, you can implement NSWindow's windowShouldClose delegate method.

See also:

Feedback, Comments & Corrections

NSWindowControllerMBS.Constructor(windowNibName as string)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Cocoa MBS MacBase Plugin 13.5 Yes No No Yes, macOS only No
Function: Returns a window controller initialized with a nib file.
Notes:
windowNibName: The name of the nib file (minus the ".nib" extension) that archives the receiver's window; cannot be empty.

Sets the owner of the nib file to the receiver. The default initialization turns on cascading, sets the shouldCloseDocument flag to false, and sets the autosave name for the window's frame to an empty string.

See also:

Feedback, Comments & Corrections

NSWindowControllerMBS.showWindow
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Cocoa MBS MacBase Plugin 13.5 Yes No No Yes, macOS only No
Function: Displays the window associated with the receiver.
Notes: If the window is an NSPanel object and has its becomesKeyOnlyIfNeeded flag set to true, the window is displayed in front of all other windows but is not made key; otherwise it is displayed in front and is made key. This method is useful for menu actions.

Feedback, Comments & Corrections

NSWindowControllerMBS.synchronizeWindowTitleWithDocumentName
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Cocoa MBS MacBase Plugin 13.5 Yes No No Yes, macOS only No
Function: Synchronizes the displayed window title and the represented filename with the information in the associated document.
Notes: Does nothing if the window controller has no associated document or loaded window. This method queries the window controller's document to get the document's display name and full filename path, then calls windowTitleForDocumentDisplayName to get the display name to show in the window title.

Feedback, Comments & Corrections

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





Links
MBS Xojo Chart Plugins