Top "Nswindowcontroller" questions

A NSWindowController object manages a window, usually a window stored in a xib file.

Handle close event of the window in Swift

How to handle close event of the window using swift, for example, to ask "Are you sure you want to …

macos swift nswindowcontroller nsviewcontroller
How to get notified when NSWindow closes

how can I take notice when an NSWindow should or will get closed? I'd like to have something like the …

cocoa nswindow appkit nswindowcontroller
NSWindowController and NSViewController

Probably a pretty simple question, but I can't get my head around it. I would like to create some sort …

objective-c cocoa nswindow nswindowcontroller nsviewcontroller
How to use NSWindowController to show a window in standard application?

I created a new blank standard application using Xcode template. Removed the window in MainMenu.xib and I created a …

objective-c xcode cocoa nib nswindowcontroller
Subclassing NSWindowController in Swift and init(windowNibName)

I am trying to start a new document based Cocoa project in Swift and want to create a subclass of …

cocoa swift initializer nswindowcontroller
Modal Window in Cocoa

I'm trying to create a custom modal window and here is the code I have so far: NSWindowController *modalSheet = [[NSWindowController …

objective-c cocoa nswindow nswindowcontroller cocoa-sheet
How do I open an NSWindow and have the window selected and in focus?

I am trying to open a NSWindow using the following code: NSWindowController *window = [[NSWindowController alloc] initWithWindowNibName:@"MainWindow"]; [window showWindow:nil]; …

objective-c cocoa macos nswindow nswindowcontroller
NSWindowController windowDidLoad not called

I have a simple Cocoa app using a NSWindowController subclass. In the nib I have set: File Owner's class to …

cocoa nswindowcontroller
Difference between NSWindowController Vs NSViewController

I am coming from iOS background and starting to learn Cocoa. On iOS unless we have multiple targets for iPad …

objective-c cocoa-touch cocoa cocoa-design-patterns nswindowcontroller
NSWindowController clarification of understanding

I have used NSWindowController in projects several times, and feel like I have a (very)rough grasp of the concepts …

cocoa nswindowcontroller cocoa-sheet