Platforms to show: All Mac Windows Linux Cross-Platform
Back to NSWindowControllerMBS class.
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Cocoa | MBS MacBase Plugin | 13.5 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
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.
NSWindowControllerMBS.Constructor(win as NSWindowMBS)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Cocoa | MBS MacBase Plugin | 13.5 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
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:
NSWindowControllerMBS.Constructor(windowNibName as string)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Cocoa | MBS MacBase Plugin | 13.5 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
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:
NSWindowControllerMBS.showWindow
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Cocoa | MBS MacBase Plugin | 13.5 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
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.
NSWindowControllerMBS.synchronizeWindowTitleWithDocumentName
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Cocoa | MBS MacBase Plugin | 13.5 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
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.
The items on this page are in the following plugins: MBS MacBase Plugin.